[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1288088743-3725-14-git-send-email-julia@diku.dk>
Date: Tue, 26 Oct 2010 12:25:42 +0200
From: Julia Lawall <julia@...u.dk>
To: Jayamohan Kallickal <jayamohank@...verengines.com>
Cc: kernel-janitors@...r.kernel.org,
"James E.J. Bottomley" <James.Bottomley@...e.de>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 13/14] drivers/scsi/be2iscsi/be_main.c: delete double assignment
From: Julia Lawall <julia@...u.dk>
Delete successive assignments to the same location. Initialize the
pwrb_handle field instead of initializing the psgl_handle field twice.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
expression i;
@@
*i = ...;
i = ...;
// </smpl>
Signed-off-by: Julia Lawall <julia@...u.dk>
---
This changes the semantics and has not been tested.
drivers/scsi/be2iscsi/be_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 75a85aa..9e1878f 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -3794,7 +3794,7 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
task->hdr = (struct iscsi_hdr *)&io_task->cmd_bhs->iscsi_hdr;
task->hdr_max = sizeof(struct be_cmd_bhs);
- io_task->psgl_handle = NULL;
+ io_task->pwrb_handle = NULL;
io_task->psgl_handle = NULL;
if (task->sc) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists