IB/iser: Delete an unnecessary variable initialisation in iser_send_data_out()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 27 Jan 2018 16:55:13 +0000 (17:55 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Sun, 28 Jan 2018 21:07:16 +0000 (14:07 -0700)
The variable "tx_desc" will be set to an appropriate pointer a bit later.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/iser/iser_initiator.c

index 3ae2571ba5b498b06170807678e70a27ed4ba4f4..1425c4957a0456677ee983b67c3daeda54531622 100644 (file)
@@ -436,7 +436,7 @@ int iser_send_data_out(struct iscsi_conn *conn,
 {
        struct iser_conn *iser_conn = conn->dd_data;
        struct iscsi_iser_task *iser_task = task->dd_data;
-       struct iser_tx_desc *tx_desc = NULL;
+       struct iser_tx_desc *tx_desc;
        struct iser_mem_reg *mem_reg;
        unsigned long buf_offset;
        unsigned long data_seg_len;