summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2024-12-30 13:44:56 +0100
committerSteve French <stfrench@microsoft.com>2025-01-06 03:43:37 +0100
commitc7f3cd1b245dbdd846ae376cc022c22af8059717 (patch)
treeb0e29df8674ed1e2414d0535b98f7bf7a1a08938 /fs
parentksmbd: fix a missing return value check bug (diff)
downloadlinux-c7f3cd1b245dbdd846ae376cc022c22af8059717.tar.xz
linux-c7f3cd1b245dbdd846ae376cc022c22af8059717.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/smb/server/transport_rdma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/smb/server/transport_rdma.c b/fs/smb/server/transport_rdma.c
index 0ef3c9f0bfeb..c3785a5434f9 100644
--- a/fs/smb/server/transport_rdma.c
+++ b/fs/smb/server/transport_rdma.c
@@ -2283,8 +2283,7 @@ out:
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);
}
}