Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bba76322 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman
Browse files

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: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b981da12
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -208,7 +208,6 @@ static ssize_t aim_write(struct file *filp, const char __user *buf,
	}
	return actual_len - retval;
error:
	if (mbo)
	most_put_mbo(mbo);
	return err;
}