Staging: most: cdev: Remove useless check
commitbba76322c3075776f222c4c7dd36f954ed458250
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 15 Oct 2015 10:42:01 +0000 (15 16:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:08:39 +0000 (16 23:08 -0700)
tree5c6029f05bc7ef3d2712ff0d9ec6cf1c86abc6a7
parentb981da12513469324a18ae8250bca2848f8bf787
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>
drivers/staging/most/aim-cdev/cdev.c