Commit c7f3cd1b authored by Thorsten Blum's avatar Thorsten Blum Committed by Steve French
Browse files

ksmbd: Remove unneeded if check in ksmbd_rdma_capable_netdev()



Remove the unnecessary if check and assign the result directly.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 4c16e1ca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);
		}
	}