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 <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4629385e6a
commit
b0183053e3
|
@ -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);
|
mbo = most_get_mbo(channel->iface, channel->channel_id);
|
||||||
|
|
||||||
if (!mbo && channel->dev) {
|
if (!mbo) {
|
||||||
if ((filp->f_flags & O_NONBLOCK))
|
if ((filp->f_flags & O_NONBLOCK))
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
if (wait_event_interruptible(
|
if (wait_event_interruptible(
|
||||||
|
|
Loading…
Reference in New Issue