staging: lustre: drop redundant check
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 31 Jul 2015 11:02:43 +0000 (16:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:03:50 +0000 (16:03 -0700)
commit208bf77049a95cd023c8e884a28449a9182f1c1a
tree106d29663e71c32f0ecc5eb4841ccb6c9342201b
parente56e17ea935a66fe3a6cd2445649a0d9365a8449
staging: lustre: drop redundant check

There is no need to verify that its an error, as we are anyway going to
match the error value to -ENOENT.  Drop the redundant check.

Reported-by: "Kirill A. Shutemov" <kirill@shutemov.name>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/lu_object.c