[SCSI] fusion: remove unnecessary code in mptscsih_resume()
authorHorms <horms@verge.net.au>
Fri, 16 Mar 2007 07:05:22 +0000 (16:05 +0900)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 20 Mar 2007 16:28:40 +0000 (11:28 -0500)
It seems that most of the code in mptscsih_resume() doesn't
do anything. This patch removes that code.

Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: "Moore, Eric" <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/message/fusion/mptscsih.c

index eef00ed139b92752f081ee1d575cc6a0b1d996b8..10927e34c2b4195b11232e4a8665f44f01334d8a 100644 (file)
@@ -1188,19 +1188,7 @@ mptscsih_suspend(struct pci_dev *pdev, pm_message_t state)
 int
 mptscsih_resume(struct pci_dev *pdev)
 {
-       MPT_ADAPTER             *ioc = pci_get_drvdata(pdev);
-       struct Scsi_Host        *host = ioc->sh;
-       MPT_SCSI_HOST           *hd;
-
        mpt_resume(pdev);
-
-       if(!host)
-               return 0;
-
-       hd = (MPT_SCSI_HOST *)host->hostdata;
-       if(!hd)
-               return 0;
-
        return 0;
 }
 
This page took 0.025649 seconds and 5 git commands to generate.