diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2022-08-26 17:32:15 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2022-08-28 14:29:07 +0300 |
commit | 05195dcb43504e381bf383e837fc935aac4258cc (patch) | |
tree | 02c576f8eb2afd6bcd652def43b0509b027a9e03 /drivers/infiniband | |
parent | b8a9c18c2f39bd84b8240b744b666114f7d62054 (diff) | |
download | linux-05195dcb43504e381bf383e837fc935aac4258cc.tar.xz |
RDMA/core: Remove 'device' argument from rdma_build_skb()
'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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/lag.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/core/lag.c b/drivers/infiniband/core/lag.c index 7063e41eaf26..c77d7d2559a1 100644 --- a/drivers/infiniband/core/lag.c +++ b/drivers/infiniband/core/lag.c @@ -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); |