mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
[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>
This commit is contained in:
parent
5036f0a0ec
commit
a82d3f6f7d
1 changed files with 0 additions and 1 deletions
|
@ -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 += 4; /* includes attribute type and length */
|
||||||
len = (len + 3) & ~3; /* should be multiple of 4 bytes */
|
len = (len + 3) & ~3; /* should be multiple of 4 bytes */
|
||||||
ae->len = htons(len);
|
ae->len = htons(len);
|
||||||
memset(ae->value, 0, len - 4);
|
|
||||||
memcpy(ae->value, val, len);
|
memcpy(ae->value, val, len);
|
||||||
*ptr += len;
|
*ptr += len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue