From: Sudip Mukherjee Date: Fri, 4 Sep 2015 10:52:02 +0000 (+0530) Subject: staging: most: remove always true comparison X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b0183053e31a51f7814b5ea257db010b924b3857;p=deliverable%2Flinux.git staging: most: remove always true comparison channel->dev has already been checked for NULL and if it was NULL then we have returned with -EPIPE. So at this point it can not be NULL. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c index b0a9a4a1225c..1a17e2af6a60 100644 --- a/drivers/staging/most/aim-cdev/cdev.c +++ b/drivers/staging/most/aim-cdev/cdev.c @@ -166,7 +166,7 @@ static ssize_t aim_write(struct file *filp, const char __user *buf, mbo = most_get_mbo(channel->iface, channel->channel_id); - if (!mbo && channel->dev) { + if (!mbo) { if ((filp->f_flags & O_NONBLOCK)) return -EAGAIN; if (wait_event_interruptible(