[-mm patch] drivers/scsi/arcmsr/: cleanups

From: Adrian Bunk
Date: Mon Jun 26 2006 - 11:15:56 EST


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@xxxxxxxxx>

---

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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/