linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [-mm patch] drivers/scsi/arcmsr/: cleanups
       [not found] <20060624061914.202fbfb5.akpm@osdl.org>
@ 2006-06-26 15:17 ` Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-06-26 15:17 UTC (permalink / raw)
  To: Andrew Morton, Erich Chen; +Cc: linux-kernel, James.Bottomley, linux-scsi

This patch contains the following cleanups:
- arcmsr_attr.c: #if 0 the unused arcmsr_free_sysfs_attr()
- arcmsr_hba.c: make the needlessly global arcmsr_iop_reset() static

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/scsi/arcmsr/arcmsr_attr.c |    2 ++
 drivers/scsi/arcmsr/arcmsr_hba.c  |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

--- linux-2.6.17-mm2-full/drivers/scsi/arcmsr/arcmsr_attr.c.old	2006-06-26 01:43:40.000000000 +0200
+++ linux-2.6.17-mm2-full/drivers/scsi/arcmsr/arcmsr_attr.c	2006-06-26 01:44:00.000000000 +0200
@@ -171,12 +171,14 @@
 							&arcmsr_sysfs_message_transfer_attr);
 }
 
+#if 0
 void
 arcmsr_free_sysfs_attr(struct AdapterControlBlock *acb) {
 	struct Scsi_Host *host = acb->host;
 
 	sysfs_remove_bin_file(&host->shost_gendev.kobj, &arcmsr_sysfs_message_transfer_attr);
 }
+#endif  /*  0  */
 
 static ssize_t
 arcmsr_attr_host_driver_version(struct class_device *cdev, char *buf) {
--- linux-2.6.17-mm2-full/drivers/scsi/arcmsr/arcmsr_hba.c.old	2006-06-26 01:44:09.000000000 +0200
+++ linux-2.6.17-mm2-full/drivers/scsi/arcmsr/arcmsr_hba.c	2006-06-26 01:44:19.000000000 +0200
@@ -1357,7 +1357,7 @@
 	acb->acb_flags |= ACB_F_IOP_INITED;
 }
 
-void arcmsr_iop_reset(struct AdapterControlBlock *acb)
+static void arcmsr_iop_reset(struct AdapterControlBlock *acb)
 {
 	struct MessageUnit __iomem *reg = acb->pmu;
 	struct CommandControlBlock *ccb;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-26 15:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060624061914.202fbfb5.akpm@osdl.org>
2006-06-26 15:17 ` [-mm patch] drivers/scsi/arcmsr/: cleanups Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).