bnx2x: Remove unnecessary ternary operators
authorRuan Jinjie <ruanjinjie@huawei.com>
Tue, 1 Aug 2023 11:19:28 +0000 (19:19 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Aug 2023 19:09:13 +0000 (12:09 -0700)
commitae336f30d513c5ccd8a87db02804c7451a061461
tree79887e5089d1ab609e3ee19cdef4e527041b6cd9
parentc7606d49e6093e9a66ffd1c5dfb294a4f8836dba
bnx2x: Remove unnecessary ternary operators

There are a little ternary operators, the true or false judgement
of which is unnecessary in C language semantics.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230801111928.300231-1-ruanjinjie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c