Staging: most: cdev: Remove useless check
Subsystems (2)
PATCH v2 1/1 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 <[email protected]>
--- drivers/staging/most/aim-cdev/cdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/most/aim-cdev/cdev.c +1 -2
@@ -207,8 +207,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; }
Signature · 1 line
2.1.0