[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1447475230-3678-1-git-send-email-cse.anjalimenon@gmail.com>
Date: Sat, 14 Nov 2015 09:57:10 +0530
From: Anjali Menon <cse.anjalimenon@...il.com>
To: gregkh@...uxfoundation.org
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Anjali Menon <cse.anjalimenon@...il.com>
Subject: [PATCH] staging: most: aim-cdev: Used "==" instead of assignment
Used double equal sign instead of equal to sign in the if condition
to remove the error detected by checkpatch.pl.
ERROR: do not use assignment in if condition
Signed-off-by: Anjali Menon <cse.anjalimenon@...il.com>
---
drivers/staging/staging/drivers/staging/most/aim-cdev/cdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/staging/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/staging/drivers/staging/most/aim-cdev/cdev.c
index dc3fb25..da1f894 100644
--- a/drivers/staging/staging/drivers/staging/most/aim-cdev/cdev.c
+++ b/drivers/staging/staging/drivers/staging/most/aim-cdev/cdev.c
@@ -175,7 +175,7 @@ static ssize_t aim_write(struct file *filp, const char __user *buf,
return -EAGAIN;
if (wait_event_interruptible(
channel->wq,
- (mbo = most_get_mbo(channel->iface,
+ (mbo == most_get_mbo(channel->iface,
channel->channel_id,
&cdev_aim)) ||
(!channel->dev)))
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists