summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorStephen M. Cameron2010-02-04 15:43:31 +0100
committerJames Bottomley2010-02-17 20:22:51 +0100
commitc7f172dca210bbd105aee02353c6b385c774caac (patch)
tree09bc4da0ccfa2024898982ff524eaeff890af10d /drivers/scsi/hpsa.c
parent[SCSI] hpsa: print all the bytes of the CDB, not just the first one. (diff)
downloadkernel-qcow2-linux-c7f172dca210bbd105aee02353c6b385c774caac.tar.gz
kernel-qcow2-linux-c7f172dca210bbd105aee02353c6b385c774caac.tar.xz
kernel-qcow2-linux-c7f172dca210bbd105aee02353c6b385c774caac.zip
[SCSI] hpsa: clarify obscure comment in adjust_hpsa_scsi_table
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index b91ccd436acb..42295c49682f 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -838,7 +838,11 @@ static void adjust_hpsa_scsi_table(struct ctlr_info *h, int hostno,
(void) hpsa_scsi_add_entry(h, hostno, sd[entry],
added, &nadded);
/* add can't fail, we just removed one. */
- sd[entry] = NULL; /* prevent it from being freed */
+
+ /* Set it to NULL to prevent it from being freed
+ * at the bottom of hpsa_update_scsi_devices()
+ */
+ sd[entry] = NULL;
}
i++;
}