]> Git Repo - linux.git/blobdiff - drivers/scsi/libfc/fc_disc.c
Merge branch 'for-2.6.38/event-handling' into for-2.6.38/core
[linux.git] / drivers / scsi / libfc / fc_disc.c
index 32f67c4b03fc014b8b47935a761a9feb6bdfa59a..911b2736cafae204379b8db7f18767b788d79bc3 100644 (file)
@@ -684,10 +684,9 @@ void fc_disc_stop(struct fc_lport *lport)
 {
        struct fc_disc *disc = &lport->disc;
 
-       if (disc) {
+       if (disc->pending)
                cancel_delayed_work_sync(&disc->disc_work);
-               fc_disc_stop_rports(disc);
-       }
+       fc_disc_stop_rports(disc);
 }
 
 /**
This page took 0.028564 seconds and 4 git commands to generate.