IB/iser: Remove redundant cmd_data_len calculation
authorSagi Grimberg <sagig@mellanox.com>
Tue, 14 Apr 2015 15:08:14 +0000 (18:08 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:07:12 +0000 (16:07 -0400)
commitecc3993a2ad2a4ce8f1a58a08e9177f21015492d
treeec9a8be87940c5ab655e2d03e2bfe649d6fb9cdb
parenta065fe6aa25ba6ba93c02dc13486131bb3c64d5f
IB/iser: Remove redundant cmd_data_len calculation

This code was added before we had protection data length
calculation (in iser_send_command), so we needed to calc
the sg data length from the sg itself. This is not needed
anymore.

This patch does not change any functionality.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Adir Lev <adirl@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iser_memory.c