diff mbox series

[rdma-next] RDMA/rxe: Remove unused addr_same()

Message ID 20181002080310.22961-1-kamalheib1@gmail.com (mailing list archive)
State Accepted
Delegated to: Jason Gunthorpe
Headers show
Series [rdma-next] RDMA/rxe: Remove unused addr_same() | expand

Commit Message

Kamal Heib Oct. 2, 2018, 8:03 a.m. UTC
This function is not in use - delete it.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
---
 drivers/infiniband/sw/rxe/rxe_net.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Leon Romanovsky Oct. 2, 2018, 9:58 a.m. UTC | #1
On Tue, Oct 02, 2018 at 11:03:10AM +0300, Kamal Heib wrote:
> This function is not in use - delete it.
>
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> ---
>  drivers/infiniband/sw/rxe/rxe_net.c | 5 -----
>  1 file changed, 5 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Jason Gunthorpe Oct. 3, 2018, 10:17 p.m. UTC | #2
On Tue, Oct 02, 2018 at 11:03:10AM +0300, Kamal Heib wrote:
> This function is not in use - delete it.
> 
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
> ---
>  drivers/infiniband/sw/rxe/rxe_net.c | 5 -----
>  1 file changed, 5 deletions(-)

Applied to for-next

Thanks,
Jason
diff mbox series

Patch

diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c
index fb06f94f33d8..40e82e0f6c2d 100644
--- a/drivers/infiniband/sw/rxe/rxe_net.c
+++ b/drivers/infiniband/sw/rxe/rxe_net.c
@@ -491,11 +491,6 @@  void rxe_loopback(struct sk_buff *skb)
 	rxe_rcv(skb);
 }
 
-static inline int addr_same(struct rxe_dev *rxe, struct rxe_av *av)
-{
-	return rxe->port.port_guid == av->grh.dgid.global.interface_id;
-}
-
 struct sk_buff *rxe_init_packet(struct rxe_dev *rxe, struct rxe_av *av,
 				int paylen, struct rxe_pkt_info *pkt)
 {