Skip to content
Snippets Groups Projects
Commit e89c0ae7 authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by James Bottomley
Browse files

[SCSI] hpsa: use sizeof() not an inline constant in memset.

parent ecd9aad4
No related merge requests found
...@@ -1363,9 +1363,8 @@ static int hpsa_scsi_do_report_luns(struct ctlr_info *h, int logical, ...@@ -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"); dev_err(&h->pdev->dev, "cmd_special_alloc returned NULL!\n");
return -1; return -1;
} }
/* address the controller */
memset(&scsi3addr[0], 0, 8); /* address the controller */ memset(scsi3addr, 0, sizeof(scsi3addr));
fill_cmd(c, logical ? HPSA_REPORT_LOG : HPSA_REPORT_PHYS, h, fill_cmd(c, logical ? HPSA_REPORT_LOG : HPSA_REPORT_PHYS, h,
buf, bufsize, 0, scsi3addr, TYPE_CMD); buf, bufsize, 0, scsi3addr, TYPE_CMD);
if (extended_response) if (extended_response)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment