From a82d3f6f7d70bf86eb32164e8e4534117015b338 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 27 Nov 2012 20:33:30 +0300 Subject: [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 Acked-by: Naresh Kumar Inna Signed-off-by: James Bottomley --- drivers/scsi/csiostor/csio_lnode.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/scsi/csiostor') 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; } -- cgit v1.2.1