]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: lustre: llite_lib: Remove unnecessary NULL check
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 15 Oct 2015 12:54:05 +0000 (18:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:29:33 +0000 (22:29 -0700)
commit83d6b8fee71f66ac2c55b98053be53aa3251e8fa
tree2f368fe297b4d283bcc4b1de5af4766dd99ec06e
parentf5ef08d8f1f51f29c9f4f7457e76789e7f10212b
Staging: lustre: llite_lib: Remove unnecessary NULL check

Variable op_data is already tested for NULL value and therefore any
further checks should be removed.
Semantic patch used:

@@ expression E;@@
if(E==NULL) {... return ...;}
- if(E){
  ...
- }

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c