summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw
diff options
context:
space:
mode:
authorMaksym Planeta <mplaneta@os.inf.tu-dresden.de>2019-07-02 15:49:28 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-07-07 09:19:38 -0300
commitd3e5397169175628696e92191dfc0e86d8e48db9 (patch)
tree01c1be89cf4a0745c64c04bd0c0e1a06ba264b34 /drivers/infiniband/sw
parent617cf24f9f9efcd5e2f0258e7da10b8a2447662b (diff)
downloadlinux-d3e5397169175628696e92191dfc0e86d8e48db9.tar.bz2
ibverbs/rxe: Remove variable self-initialization
In some cases (not in this particular one) variable self-initialization can lead to undefined behavior. In this case, it is just obscure code. Signed-off-by: Maksym Planeta <mplaneta@os.inf.tu-dresden.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_comp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c
index 00eb99d3df86..116cafc9afcf 100644
--- a/drivers/infiniband/sw/rxe/rxe_comp.c
+++ b/drivers/infiniband/sw/rxe/rxe_comp.c
@@ -558,7 +558,7 @@ int rxe_completer(void *arg)
{
struct rxe_qp *qp = (struct rxe_qp *)arg;
struct rxe_dev *rxe = to_rdev(qp->ibqp.device);
- struct rxe_send_wqe *wqe = wqe;
+ struct rxe_send_wqe *wqe = NULL;
struct sk_buff *skb = NULL;
struct rxe_pkt_info *pkt = NULL;
enum comp_state state;