diff options
author | 2021-01-11 14:57:54 +0000 | |
---|---|---|
committer | 2021-01-19 20:02:07 -0400 | |
commit | 877745b47783869a3149cf691ebff56e2a557f53 (patch) | |
tree | 725f541761014aa8eb7408cef32a9bc17ed3d40c /drivers/infiniband/core/device.c | |
parent | IB/iser: Enforce iser_max_sectors to be greater than 0 (diff) | |
download | wireguard-linux-877745b47783869a3149cf691ebff56e2a557f53.tar.xz wireguard-linux-877745b47783869a3149cf691ebff56e2a557f53.zip |
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>
Diffstat (limited to 'drivers/infiniband/core/device.c')
0 files changed, 0 insertions, 0 deletions