diff mbox

[OPW,kernel] staging:vt6656: Removed assignment in if statement.

Message ID 1394366766-23228-1-git-send-email-fempsci@gmail.com
State New, archived
Headers show

Commit Message

Chi Pham March 9, 2014, 12:06 p.m. UTC
Signed-off-by: Chi Pham <fempsci@gmail.com>
---
 drivers/staging/vt6656/iwctl.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/staging/vt6656/iwctl.c b/drivers/staging/vt6656/iwctl.c
index bedc810..cf4c06a 100644
--- a/drivers/staging/vt6656/iwctl.c
+++ b/drivers/staging/vt6656/iwctl.c
@@ -1395,7 +1395,8 @@  int iwctl_giwpower(struct net_device *dev, struct iw_request_info *info,
 	if (pMgmt == NULL)
 		return -EFAULT;
 
-	if ((wrq->disabled = (mode == WMAC_POWER_CAM)))
+	wrq->disabled = (mode == WMAC_POWER_CAM);
+	if (wrq->disabled)
 		return 0;
 
 	if ((wrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) {