[PATCH 13/14] drivers/scsi/be2iscsi/be_main.c: delete double assignment
From: Julia Lawall
Date: Tue Oct 26 2010 - 06:19:20 EST
From: Julia Lawall <julia@xxxxxxx>
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@xxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/