atm: zatm: fix memcmp casting
authorIvan Bornyakov <brnkv.i1@gmail.com>
Fri, 25 May 2018 17:49:52 +0000 (20:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 13:59:53 +0000 (09:59 -0400)
commitf9c6442a8f0b1dde9e755eb4ff6fa22bcce4eabc
tree4aaae2913584f690008cebd6b7594322e60872f7
parent312564269535892cc082bc80592150cd1f5e8ec3
atm: zatm: fix memcmp casting

memcmp() returns int, but eprom_try_esi() cast it to unsigned char. One
can lose significant bits and get 0 from non-0 value returned by the
memcmp().

Signed-off-by: Ivan Bornyakov <brnkv.i1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/zatm.c