Commit bccb763d authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman

staging: rdma: amso1100: Remove unnecessary variable

Drop unnecessary variable that can be replaced by single line of code.
Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent afcf9bc1
...@@ -81,7 +81,6 @@ ...@@ -81,7 +81,6 @@
static int c2_adapter_init(struct c2_dev *c2dev) static int c2_adapter_init(struct c2_dev *c2dev)
{ {
struct c2wr_init_req wr; struct c2wr_init_req wr;
int err;
memset(&wr, 0, sizeof(wr)); memset(&wr, 0, sizeof(wr));
c2_wr_set_id(&wr, CCWR_INIT); c2_wr_set_id(&wr, CCWR_INIT);
...@@ -94,9 +93,7 @@ static int c2_adapter_init(struct c2_dev *c2dev) ...@@ -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); wr.q2_host_msg_pool = cpu_to_be64(c2dev->aeq.host_dma);
/* Post the init message */ /* Post the init message */
err = vq_send_wr(c2dev, (union c2wr *) & wr); return vq_send_wr(c2dev, (union c2wr *) & wr);
return err;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment