]> git.itanic.dy.fi Git - linux-stable/commitdiff
RDMA/core: Remove 'device' argument from rdma_build_skb()
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 26 Aug 2022 14:32:15 +0000 (22:32 +0800)
committerLeon Romanovsky <leonro@nvidia.com>
Sun, 28 Aug 2022 11:29:07 +0000 (14:29 +0300)
'device' argument is never used since rdma_build_skb()
is introduced, so remove it.

Link: https://lore.kernel.org/r/20220826143215.18111-1-linyunsheng@huawei.com
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/lag.c

index 7063e41eaf26125ec6d0276699d050ca41b11c17..c77d7d2559a11d83251d91a23d6156b71fafd2ef 100644 (file)
@@ -7,8 +7,7 @@
 #include <rdma/ib_cache.h>
 #include <rdma/lag.h>
 
-static struct sk_buff *rdma_build_skb(struct ib_device *device,
-                                     struct net_device *netdev,
+static struct sk_buff *rdma_build_skb(struct net_device *netdev,
                                      struct rdma_ah_attr *ah_attr,
                                      gfp_t flags)
 {
@@ -86,7 +85,7 @@ static struct net_device *rdma_get_xmit_slave_udp(struct ib_device *device,
        struct net_device *slave;
        struct sk_buff *skb;
 
-       skb = rdma_build_skb(device, master, ah_attr, flags);
+       skb = rdma_build_skb(master, ah_attr, flags);
        if (!skb)
                return ERR_PTR(-ENOMEM);