diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-11-27 12:33:30 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-30 10:42:55 -0500 |
commit | a82d3f6f7d70bf86eb32164e8e4534117015b338 (patch) | |
tree | d5ce20a5da73ba0ec5e2436d4bc2606bc8b98608 | |
parent | 5036f0a0ecd31fc94360a944b352d082e1182b04 (diff) |
[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.c | 1 |
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) | |||
245 | len += 4; /* includes attribute type and length */ | 245 | len += 4; /* includes attribute type and length */ |
246 | len = (len + 3) & ~3; /* should be multiple of 4 bytes */ | 246 | len = (len + 3) & ~3; /* should be multiple of 4 bytes */ |
247 | ae->len = htons(len); | 247 | ae->len = htons(len); |
248 | memset(ae->value, 0, len - 4); | ||
249 | memcpy(ae->value, val, len); | 248 | memcpy(ae->value, val, len); |
250 | *ptr += len; | 249 | *ptr += len; |
251 | } | 250 | } |