public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] fusion - removed unnecessary code in mptscsih_resume()
@ 2007-03-16  7:05 Horms
  2007-03-16  7:05 ` [PATCH 2/2] fusion - honour return value of pci_enable_device() in mpt_resume() Horms
  0 siblings, 1 reply; 9+ messages in thread
From: Horms @ 2007-03-16  7:05 UTC (permalink / raw)
  To: mpt_linux_developer, linux-scsi; +Cc: Eric Moore

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>

Index: linux-2.6/drivers/message/fusion/mptscsih.c
===================================================================
--- linux-2.6.orig/drivers/message/fusion/mptscsih.c	2007-03-16 14:47:18.000000000 +0900
+++ linux-2.6/drivers/message/fusion/mptscsih.c	2007-03-16 14:48:53.000000000 +0900
@@ -1188,19 +1188,7 @@
 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;
 }
 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-03-19  6:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16  7:05 [PATCH 1/2] fusion - removed unnecessary code in mptscsih_resume() Horms
2007-03-16  7:05 ` [PATCH 2/2] fusion - honour return value of pci_enable_device() in mpt_resume() Horms
2007-03-16 14:27   ` James Bottomley
2007-03-16 15:06     ` Randy Dunlap
2007-03-16 16:14       ` James Bottomley
2007-03-16 15:20         ` Randy Dunlap
2007-03-16 17:18           ` Douglas Gilbert
2007-03-19  6:06     ` Horms
2007-03-17  0:00   ` Moore, Eric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox