[PATCH] staging: most: aim-cdev: Used "==" instead of assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux