Skip to content

Commit c7f3cd1

Browse files
tobluxsmfrench
authored andcommitted
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 <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 4c16e1c commit c7f3cd1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/smb/server/transport_rdma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,8 +2283,7 @@ bool ksmbd_rdma_capable_netdev(struct net_device *netdev)
22832283

22842284
ibdev = ib_device_get_by_netdev(netdev, RDMA_DRIVER_UNKNOWN);
22852285
if (ibdev) {
2286-
if (rdma_frwr_is_supported(&ibdev->attrs))
2287-
rdma_capable = true;
2286+
rdma_capable = rdma_frwr_is_supported(&ibdev->attrs);
22882287
ib_device_put(ibdev);
22892288
}
22902289
}

0 commit comments

Comments
 (0)