Staging: most: cdev: Remove useless check
The variable mbo is already NULL tested so, check on it should be removed. Semantic patch used: @@ expression E; statement S; @@ if(E==NULL) {... return ...;} - if(E) S Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b981da1251
commit
bba76322c3
@ -208,8 +208,7 @@ static ssize_t aim_write(struct file *filp, const char __user *buf,
|
||||
}
|
||||
return actual_len - retval;
|
||||
error:
|
||||
if (mbo)
|
||||
most_put_mbo(mbo);
|
||||
most_put_mbo(mbo);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user