mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
ksmbd: Remove unneeded if check in ksmbd_rdma_capable_netdev()
Remove the unnecessary if check and assign the result directly. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
4c16e1cadc
commit
c7f3cd1b24
|
|
@ -2283,8 +2283,7 @@ bool ksmbd_rdma_capable_netdev(struct net_device *netdev)
|
|||
|
||||
ibdev = ib_device_get_by_netdev(netdev, RDMA_DRIVER_UNKNOWN);
|
||||
if (ibdev) {
|
||||
if (rdma_frwr_is_supported(&ibdev->attrs))
|
||||
rdma_capable = true;
|
||||
rdma_capable = rdma_frwr_is_supported(&ibdev->attrs);
|
||||
ib_device_put(ibdev);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user