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:
Shivani Bhardwaj 2015-10-15 16:12:01 +05:30 committed by Greg Kroah-Hartman
parent b981da1251
commit bba76322c3
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}