Commit a82d3f6f authored by Dan Carpenter's avatar Dan Carpenter Committed by James Bottomley

[SCSI] csiostor: remove unneeded memset()

No need to memset() this when we just copy over it on the next line.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarNaresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 5036f0a0
...@@ -245,7 +245,6 @@ csio_append_attrib(uint8_t **ptr, uint16_t type, uint8_t *val, uint16_t len) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment