summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2008-02-28 20:52:43 +0100
committerStefan Richter <stefanr@s5r6.in-berlin.de>2008-04-18 17:55:32 +0200
commit6f73100cbbb9728c098bd05e9363d206b9eeab47 (patch)
tree79ae3757d8a07880705b180b24574b51dd42724b /drivers
parent0d7dcbf2a3b6042351948ecf1f171eb3f1d72cd3 (diff)
downloadop-kernel-dev-6f73100cbbb9728c098bd05e9363d206b9eeab47.zip
op-kernel-dev-6f73100cbbb9728c098bd05e9363d206b9eeab47.tar.gz
firewire: fw-sbp2: remove unnecessary memset
orb came from kzalloc. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/firewire/fw-sbp2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index d1bdf18..71146ba 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -1454,7 +1454,6 @@ static int sbp2_scsi_queuecommand(struct scsi_cmnd *cmd, scsi_done_fn_t done)
orb->cmd = cmd;
orb->request.next.high = cpu_to_be32(SBP2_ORB_NULL);
- orb->request.next.low = 0x0;
/*
* At speed 100 we can do 512 bytes per packet, at speed 200,
* 1024 bytes per packet etc. The SBP-2 max_payload field
@@ -1474,8 +1473,6 @@ static int sbp2_scsi_queuecommand(struct scsi_cmnd *cmd, scsi_done_fn_t done)
if (scsi_sg_count(cmd) && sbp2_map_scatterlist(orb, device, lu) < 0)
goto out;
- memset(orb->request.command_block,
- 0, sizeof(orb->request.command_block));
memcpy(orb->request.command_block, cmd->cmnd, COMMAND_SIZE(*cmd->cmnd));
orb->base.callback = complete_command_orb;
OpenPOWER on IntegriCloud