staging: lustre: ldlm: fix 'deadcode' errors
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 5 Apr 2016 01:36:46 +0000 (21:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 03:47:04 +0000 (20:47 -0700)
Fix 'deadcode' issues found by Coverity version 6.5.1:
Logically dead code (DEADCODE)
Execution cannot reach this statement.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3097
Reviewed-on: http://review.whamcloud.com/7167
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_flock.c

index b88b786..3f97e1c 100644 (file)
@@ -530,12 +530,6 @@ granted:
                return -EIO;
        }
 
-       if (rc) {
-               LDLM_DEBUG(lock, "client-side enqueue waking up: failed (%d)",
-                          rc);
-               return rc;
-       }
-
        LDLM_DEBUG(lock, "client-side enqueue granted");
 
        lock_res_and_lock(lock);