Commit 97e2ba90 authored by Rakhi Sharma's avatar Rakhi Sharma Committed by Greg Kroah-Hartman

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: default avatarRakhi Sharma <rakhish1994@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aea48157
...@@ -293,7 +293,7 @@ u8 r8712_fw_cmd(struct _adapter *pAdapter, u32 cmd) ...@@ -293,7 +293,7 @@ u8 r8712_fw_cmd(struct _adapter *pAdapter, u32 cmd)
r8712_write32(pAdapter, IOCMD_CTRL_REG, cmd); r8712_write32(pAdapter, IOCMD_CTRL_REG, cmd);
msleep(100); msleep(100);
while ((0 != r8712_read32(pAdapter, IOCMD_CTRL_REG)) && while ((r8712_read32(pAdapter, IOCMD_CTRL_REG != 0)) &&
(pollingcnts > 0)) { (pollingcnts > 0)) {
pollingcnts--; pollingcnts--;
msleep(20); msleep(20);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment