IB/iser: Refactor iscsi_iser_check_protection function
authorIsrael Rukshin <israelr@mellanox.com>
Wed, 15 May 2019 10:49:25 +0000 (13:49 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 21 May 2019 18:01:05 +0000 (15:01 -0300)
commita7b287bf7845fc335d53550a228ad4fa9aa659e5
treec350ee382f1fc2b98ca5fa723c4805487f0a05d8
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
IB/iser: Refactor iscsi_iser_check_protection function

Reduce lines of code by using local variable.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/iser/iscsi_iser.c