git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] csiostor: remove unneeded memset()
[pandora-kernel.git]
/
drivers
/
scsi
/
csiostor
/
csio_lnode.c
diff --git
a/drivers/scsi/csiostor/csio_lnode.c
b/drivers/scsi/csiostor/csio_lnode.c
index
5322c81
..
ffe9be0
100644
(file)
--- 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;
}