IB/isert: Simplify signature cap check
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Sun, 10 Jan 2021 11:19:03 +0000 (11:19 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 18 Jan 2021 20:59:04 +0000 (16:59 -0400)
commita6dc16b6996388d016df83fb92eae16242ab7ac5
tree1eccf8b5be8e5975c8c91ed3a77fcc1e436d4642
parentec53a2a6540d6025f0ff205af0ba635c9b1cce02
IB/isert: Simplify signature cap check

Use if/else clause instead of "condition ? val1 : val2" to make the code
cleaner and simpler.

Link: https://lore.kernel.org/r/20210110111903.486681-3-mgurtovoy@nvidia.com
Reviewed-by: Israel Rukshin <israelr@nvidia.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/isert/ib_isert.c