diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-11-27 20:33:30 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-30 15:42:55 +0000 |
commit | a82d3f6f7d70bf86eb32164e8e4534117015b338 (patch) | |
tree | d5ce20a5da73ba0ec5e2436d4bc2606bc8b98608 /drivers/scsi/csiostor | |
parent | 5036f0a0ecd31fc94360a944b352d082e1182b04 (diff) | |
download | linux-a82d3f6f7d70bf86eb32164e8e4534117015b338.tar.gz |
[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>
Diffstat (limited to 'drivers/scsi/csiostor')
-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) 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; } |