]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: most: cdev: Remove useless check
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 15 Oct 2015 10:42:01 +0000 (16:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:08:39 +0000 (23:08 -0700)
commitd0a5ac1bcf0117b5e101e5c23a55f9e2c3a4f882
tree5c6029f05bc7ef3d2712ff0d9ec6cf1c86abc6a7
parent8ca2f6fed40d136ce1c7d6abb5d7254b65bcb419
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