]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: add explicit check to 'size' variables
authorTobin C. Harding <me@tobin.cc>
Wed, 22 Mar 2017 00:59:54 +0000 (11:59 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 13:27:23 +0000 (14:27 +0100)
commitd4d35a96d876eab1caf434bdc621f67a520d7939
treeabda6da13d9419896007ebaa39f27de83bc53f86
parentfc47d900b8767bf9a1d4b60fe9398d057165619c
staging: ks7010: add explicit check to 'size' variables

When checking the value of a variable that holds a 0 an explicit check
is good style. i.e

  -    if (!size)
  +    if (size == 0)

Update checks on 'numerical' variables to use explicit checks.

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