From: Anjali Menon <cse.anjalimenon@gmail.com>
To: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
Anjali Menon <cse.anjalimenon@gmail.com>
Subject: [PATCH] staging: most: aim-cdev: Used "==" instead of assignment
Date: Sat, 14 Nov 2015 09:57:10 +0530 [thread overview]
Message-ID: <1447475230-3678-1-git-send-email-cse.anjalimenon@gmail.com> (raw)
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@gmail.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
next reply other threads:[~2015-11-14 4:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-14 4:27 Anjali Menon [this message]
2015-11-14 7:08 ` Sudip Mukherjee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447475230-3678-1-git-send-email-cse.anjalimenon@gmail.com \
--to=cse.anjalimenon@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®