diff options
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | 2010-02-04 08:42:04 -0600 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-17 13:18:38 -0600 |
commit | e89c0ae7babc3e702a9da128b3ac1eb04ed73c2c (patch) | |
tree | 04f7317a494c4b308238dd00406f2b0474d6489e /drivers | |
parent | ecd9aad402765abce04a96b8d1ed15163ca6c8a1 (diff) | |
download | linux-3.10-e89c0ae7babc3e702a9da128b3ac1eb04ed73c2c.tar.gz linux-3.10-e89c0ae7babc3e702a9da128b3ac1eb04ed73c2c.tar.bz2 linux-3.10-e89c0ae7babc3e702a9da128b3ac1eb04ed73c2c.zip |
[SCSI] hpsa: use sizeof() not an inline constant in memset.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/hpsa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 8389ccefd10..add2ed57846 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1363,9 +1363,8 @@ static int hpsa_scsi_do_report_luns(struct ctlr_info *h, int logical, dev_err(&h->pdev->dev, "cmd_special_alloc returned NULL!\n"); return -1; } - - memset(&scsi3addr[0], 0, 8); /* address the controller */ - + /* address the controller */ + memset(scsi3addr, 0, sizeof(scsi3addr)); fill_cmd(c, logical ? HPSA_REPORT_LOG : HPSA_REPORT_PHYS, h, buf, bufsize, 0, scsi3addr, TYPE_CMD); if (extended_response) |