IB/rxe: Avoid passing unused index pointer which is optional
authorParav Pandit <[email protected]>
Tue, 14 Nov 2017 12:52:06 +0000 (14:52 +0200)
committerJason Gunthorpe <[email protected]>
Mon, 18 Dec 2017 22:37:08 +0000 (15:37 -0700)
While searching for GID, returned index is not used, so avoid passing
pointer during invocation.

Signed-off-by: Parav Pandit <[email protected]>
Reviewed-by: Daniel Jurgens <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/infiniband/sw/rxe/rxe_recv.c

index fb8c83e055e14c653eb1f05f42a3265005d8d737..4c3f899241d48197bc921960b3f2355bcd63d3f1 100644 (file)
@@ -336,7 +336,6 @@ static int rxe_match_dgid(struct rxe_dev *rxe, struct sk_buff *skb)
 {
        union ib_gid dgid;
        union ib_gid *pdgid;
-       u16 index;
 
        if (skb->protocol == htons(ETH_P_IP)) {
                ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr,
@@ -348,7 +347,7 @@ static int rxe_match_dgid(struct rxe_dev *rxe, struct sk_buff *skb)
 
        return ib_find_cached_gid_by_port(&rxe->ib_dev, pdgid,
                                          IB_GID_TYPE_ROCE_UDP_ENCAP,
-                                         1, rxe->ndev, &index);
+                                         1, rxe->ndev, NULL);
 }
 
 /* rxe_rcv is called from the interface driver */