summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712
diff options
context:
space:
mode:
authorRakhi Sharma2016-01-29 08:07:06 +0100
committerGreg Kroah-Hartman2016-02-08 04:53:04 +0100
commit97e2ba90fc89f375e88ad5d825c149fb82d8207b (patch)
tree824c26f04bfb490975f98e952893825cc8a5b1fd /drivers/staging/rtl8712
parentstaging: rtl8712: memory corruption in wpa_set_encryption() (diff)
downloadkernel-qcow2-linux-97e2ba90fc89f375e88ad5d825c149fb82d8207b.tar.gz
kernel-qcow2-linux-97e2ba90fc89f375e88ad5d825c149fb82d8207b.tar.xz
kernel-qcow2-linux-97e2ba90fc89f375e88ad5d825c149fb82d8207b.zip
Staging: rtl8712: rtl8712_cmd: Fixed a warning.
Warning:Comparisons should place the constant on the right side of the test Fixed by placing the comparisions constant on right side of the test. Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r--drivers/staging/rtl8712/rtl8712_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_cmd.c b/drivers/staging/rtl8712/rtl8712_cmd.c
index 9b9160947943..86a9089b62fd 100644
--- a/drivers/staging/rtl8712/rtl8712_cmd.c
+++ b/drivers/staging/rtl8712/rtl8712_cmd.c
@@ -293,7 +293,7 @@ u8 r8712_fw_cmd(struct _adapter *pAdapter, u32 cmd)
r8712_write32(pAdapter, IOCMD_CTRL_REG, cmd);
msleep(100);
- while ((0 != r8712_read32(pAdapter, IOCMD_CTRL_REG)) &&
+ while ((r8712_read32(pAdapter, IOCMD_CTRL_REG != 0)) &&
(pollingcnts > 0)) {
pollingcnts--;
msleep(20);