diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-29 13:33:45 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-11-15 20:02:47 -0800 |
commit | bccb763d5fa25add4b374ac720052a01ba95cbca (patch) | |
tree | 3813f9d01ebfadd65e05eaa12a6083e06dfc314d | |
parent | afcf9bc1bfe651a208e586ec68b35a1361af2fc9 (diff) | |
download | linux-stable-bccb763d5fa25add4b374ac720052a01ba95cbca.tar.gz linux-stable-bccb763d5fa25add4b374ac720052a01ba95cbca.tar.bz2 linux-stable-bccb763d5fa25add4b374ac720052a01ba95cbca.zip |
staging: rdma: amso1100: Remove unnecessary variable
Drop unnecessary variable that can be replaced by single line of code.
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rdma/amso1100/c2_rnic.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rdma/amso1100/c2_rnic.c b/drivers/staging/rdma/amso1100/c2_rnic.c index d3c0f77767d9..5e65c6d07ca4 100644 --- a/drivers/staging/rdma/amso1100/c2_rnic.c +++ b/drivers/staging/rdma/amso1100/c2_rnic.c @@ -81,7 +81,6 @@ static int c2_adapter_init(struct c2_dev *c2dev) { struct c2wr_init_req wr; - int err; memset(&wr, 0, sizeof(wr)); c2_wr_set_id(&wr, CCWR_INIT); @@ -94,9 +93,7 @@ static int c2_adapter_init(struct c2_dev *c2dev) wr.q2_host_msg_pool = cpu_to_be64(c2dev->aeq.host_dma); /* Post the init message */ - err = vq_send_wr(c2dev, (union c2wr *) & wr); - - return err; + return vq_send_wr(c2dev, (union c2wr *) & wr); } /* |