提交 a82d3f6f 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NNaresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 5036f0a0
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册