]> git.baikalelectronics.ru Git - kernel.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)
commitebfd5ab94085978857618020153e24a52a32975d
tree2f368fe297b4d283bcc4b1de5af4766dd99ec06e
parent539ec989dd1053d407b5ff4563e4cd5ac86d4e05
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