Commit a82d3f6f7d70bf86eb32164e8e4534117015b338

Authored by Dan Carpenter
Committed by James Bottomley
1 parent 5036f0a0ec

[SCSI] csiostor: remove unneeded memset()

No need to memset() this when we just copy over it on the next line.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Naresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/scsi/csiostor/csio_lnode.c
... ... @@ -245,7 +245,6 @@
245 245 len += 4; /* includes attribute type and length */
246 246 len = (len + 3) & ~3; /* should be multiple of 4 bytes */
247 247 ae->len = htons(len);
248   - memset(ae->value, 0, len - 4);
249 248 memcpy(ae->value, val, len);
250 249 *ptr += len;
251 250 }