cciss: Remove unnecessary check in scan_thread
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 12 Nov 2009 18:49:50 +0000 (12:49 -0600)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 13 Nov 2009 07:45:53 +0000 (08:45 +0100)
cciss: Remove unnecessary check in scan_thread

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c

index 23c2910aa7bbf8ec163c4c3f5a0b786358fa851c..42eaddb543807ed7aece9bcdcbfcf824143e8b43 100644 (file)
@@ -3386,13 +3386,11 @@ static int scan_thread(void *data)
                        h->busy_scanning = 1;
                        mutex_unlock(&scan_mutex);
 
-                       if (h) {
-                               rebuild_lun_table(h, 0, 0);
-                               complete_all(&h->scan_wait);
-                               mutex_lock(&scan_mutex);
-                               h->busy_scanning = 0;
-                               mutex_unlock(&scan_mutex);
-                       }
+                       rebuild_lun_table(h, 0, 0);
+                       complete_all(&h->scan_wait);
+                       mutex_lock(&scan_mutex);
+                       h->busy_scanning = 0;
+                       mutex_unlock(&scan_mutex);
                }
        }