aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorIshai Rabinovitz <ishai@mellanox.co.il>2006-10-10 12:51:14 -0400
committerRoland Dreier <rolandd@cisco.com>2006-10-10 12:51:14 -0400
commit9b0af401aae336975e620fccdd294bb763424f3f (patch)
treeb312e710814f647e2c730758c3aa6c252c589aa1 /drivers/infiniband/ulp
parente52e6080ca10e0a8ce2a35c86965945cdfa8ed7e (diff)
IB/srp: Remove redundant memset()
scsi_host_alloc() already allocates with kzalloc(), so the struct Scsi_Host is zeroed out, including the private data portion. Remove the redundant memset that zeros this out again in the SRP initiator. Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 44b9e5be6687..f1b7a0f2beed 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1708,7 +1708,6 @@ static ssize_t srp_create_target(struct class_device *class_dev,
1708 target_host->max_lun = SRP_MAX_LUN; 1708 target_host->max_lun = SRP_MAX_LUN;
1709 1709
1710 target = host_to_target(target_host); 1710 target = host_to_target(target_host);
1711 memset(target, 0, sizeof *target);
1712 1711
1713 target->io_class = SRP_REV16A_IB_IO_CLASS; 1712 target->io_class = SRP_REV16A_IB_IO_CLASS;
1714 target->scsi_host = target_host; 1713 target->scsi_host = target_host;