Skip to content

Commit

Permalink
[SCSI] csiostor: remove unneeded memset()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and James Bottomley committed Nov 30, 2012
1 parent 5036f0a commit a82d3f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/scsi/csiostor/csio_lnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ csio_append_attrib(uint8_t **ptr, uint16_t type, uint8_t *val, uint16_t len)
len += 4; /* includes attribute type and length */
len = (len + 3) & ~3; /* should be multiple of 4 bytes */
ae->len = htons(len);
memset(ae->value, 0, len - 4);
memcpy(ae->value, val, len);
*ptr += len;
}
Expand Down

0 comments on commit a82d3f6

Please sign in to comment.