From: Rakhi Sharma Date: Fri, 29 Jan 2016 07:07:06 +0000 (+0530) Subject: Staging: rtl8712: rtl8712_cmd: Fixed a warning. X-Git-Tag: v5.15~14007^2~1046 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97e2ba90fc89f375e88ad5d825c149fb82d8207b;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl8712_cmd.c b/drivers/staging/rtl8712/rtl8712_cmd.c index 9b91609..86a9089 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);