staging: ks7010: add explicit check to memcmp() calls
authorTobin C. Harding <me@tobin.cc>
Wed, 22 Mar 2017 00:59:53 +0000 (11:59 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 13:27:23 +0000 (14:27 +0100)
commitb5ca039ac17594e870a12c68ca8847700aa300dd
tree077732d29520aa6679fc55d2aff4dddc504ef8d8
parent58af272b333eeba428ca53b5b80dbbcf120fe57a
staging: ks7010: add explicit check to memcmp() calls

Calls to functions memcmp() and strcmp() are more clearly readable
when the return value is explicitly checked. i.e

if (memcmp(foo, bar, size) == 0)

Modify driver to use an explicit check on the value returned by
memcmp().

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c
drivers/staging/ks7010/ks_wlan_net.c