[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>
This commit is contained in:
Stephen M. Cameron 2010-02-04 08:43:31 -06:00 committed by James Bottomley
parent 807be732f9
commit c7f172dca2
1 changed files with 5 additions and 1 deletions

View File

@ -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++;
}