diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-11-27 18:33:30 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-30 16:42:55 +0100 |
commit | a82d3f6f7d70bf86eb32164e8e4534117015b338 (patch) | |
tree | d5ce20a5da73ba0ec5e2436d4bc2606bc8b98608 /drivers/scsi | |
parent | [SCSI] csiostor: Fix sparse warnings. (diff) | |
download | linux-a82d3f6f7d70bf86eb32164e8e4534117015b338.tar.xz linux-a82d3f6f7d70bf86eb32164e8e4534117015b338.zip |
[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')
-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; } |