IB/iser: Simplify prot_caps setting
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Mon, 11 Jan 2021 14:57:54 +0000 (14:57 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 20 Jan 2021 00:02:07 +0000 (20:02 -0400)
commit877745b47783869a3149cf691ebff56e2a557f53
tree725f541761014aa8eb7408cef32a9bc17ed3d40c
parent6bd898baf2bb37968c909a5f057e1ccca90dbb3c
IB/iser: Simplify prot_caps setting

Reduce the number of instructions made for setting protection caps. No
need to do bitwise OR with 0 since we can zero the return value in the
beginning of the function.

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