IB/hfi1: Remove unnecessary if check
authorJan Sokolowski <jan.sokolowski@intel.com>
Mon, 6 Nov 2017 14:38:45 +0000 (06:38 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 20:53:57 +0000 (15:53 -0500)
commite4c397eed9c93fc1cb34f7d8df96afeb320d535d
treec5db7fa9606ebb771c59c476d6c5b0723993a8a8
parentd61ea0751aa097182291c7ceed447bc73e020109
IB/hfi1: Remove unnecessary if check

A for loop condition of data_iovs in user_sdma_free_request
is unnecessarily repeated before the loop as an if check.

Remove the if enveloping the loop.

Reviewed-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c