summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-11-27 20:33:30 +0300
committerJames Bottomley <JBottomley@Parallels.com>2012-11-30 15:42:55 +0000
commita82d3f6f7d70bf86eb32164e8e4534117015b338 (patch)
treed5ce20a5da73ba0ec5e2436d4bc2606bc8b98608
parent5036f0a0ecd31fc94360a944b352d082e1182b04 (diff)
downloadlinux-a82d3f6f7d70bf86eb32164e8e4534117015b338.tar.bz2
[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>
-rw-r--r--drivers/scsi/csiostor/csio_lnode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/csiostor/csio_lnode.c b/drivers/scsi/csiostor/csio_lnode.c
index 5322c81cc702..ffe9be04dc39 100644
--- a/drivers/scsi/csiostor/csio_lnode.c
+++ b/drivers/scsi/csiostor/csio_lnode.c
@@ -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;
}