]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/siw: replace redundant ternary operator with just rv
authorColin Ian King <colin.i.king@gmail.com>
Wed, 7 May 2025 13:18:34 +0000 (14:18 +0100)
committerLeon Romanovsky <leon@kernel.org>
Mon, 12 May 2025 10:20:24 +0000 (06:20 -0400)
commit8536666a52833da326ab17d43ee2cd6c66751716
treee8db5de1df4a5338f6227d9bb9bfe6745381aad9
parent15a9f67e286b37e87dce0d9fa6ab702631c22d15
RDMA/siw: replace redundant ternary operator with just rv

The use of the ternary operator on rv is redundant, rv is
either the initialized value of 0 or a negative error return
code, so it can never be greater than zero, and hence the
zero assignment in ternary operator is redundant. Just return
rv instead.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20250507131834.253823-1-colin.i.king@gmail.com
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/siw/siw_verbs.c