aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay12@gmail.com>2019-05-21 19:46:42 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-22 14:32:40 +0200
commitfd078b420961633713032d0bfdf448281bd33e3b (patch)
tree6bd656d8e45cb921bf0bd971ebb38f7b0b59ba7d /drivers/staging/rtl8188eu
parentStaging: rtl8192u: ieee80211: Replace function names in strings with "%s", __func__ (diff)
downloadlinux-dev-fd078b420961633713032d0bfdf448281bd33e3b.tar.xz
linux-dev-fd078b420961633713032d0bfdf448281bd33e3b.zip
Staging: rtl8188eu: os_dep: Replace comparison with zero to !x
Change comparison to zero to !x. Replace (x == 0) to !x. Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/rtw_android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/rtw_android.c b/drivers/staging/rtl8188eu/os_dep/rtw_android.c
index 7a090615dcbc..daf6db354982 100644
--- a/drivers/staging/rtl8188eu/os_dep/rtw_android.c
+++ b/drivers/staging/rtl8188eu/os_dep/rtw_android.c
@@ -67,7 +67,7 @@ int rtw_android_cmdstr_to_num(char *cmdstr)
int cmd_num;
for (cmd_num = 0; cmd_num < ANDROID_WIFI_CMD_MAX; cmd_num++)
- if (0 == strncasecmp(cmdstr, android_wifi_cmd_str[cmd_num],
+ if (!strncasecmp(cmdstr, android_wifi_cmd_str[cmd_num],
strlen(android_wifi_cmd_str[cmd_num])))
break;
return cmd_num;