Commit 05195dcb authored by Yunsheng Lin's avatar Yunsheng Lin Committed by Leon Romanovsky

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.comSigned-off-by: default avatarYunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent b8a9c18c
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
#include <rdma/ib_cache.h> #include <rdma/ib_cache.h>
#include <rdma/lag.h> #include <rdma/lag.h>
static struct sk_buff *rdma_build_skb(struct ib_device *device, static struct sk_buff *rdma_build_skb(struct net_device *netdev,
struct net_device *netdev,
struct rdma_ah_attr *ah_attr, struct rdma_ah_attr *ah_attr,
gfp_t flags) gfp_t flags)
{ {
...@@ -86,7 +85,7 @@ static struct net_device *rdma_get_xmit_slave_udp(struct ib_device *device, ...@@ -86,7 +85,7 @@ static struct net_device *rdma_get_xmit_slave_udp(struct ib_device *device,
struct net_device *slave; struct net_device *slave;
struct sk_buff *skb; struct sk_buff *skb;
skb = rdma_build_skb(device, master, ah_attr, flags); skb = rdma_build_skb(master, ah_attr, flags);
if (!skb) if (!skb)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment