IB/hfi1: Remove unnecessary if check
authorJan Sokolowski <[email protected]>
Mon, 6 Nov 2017 14:38:45 +0000 (06:38 -0800)
committerDoug Ledford <[email protected]>
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 <[email protected]>
Signed-off-by: Jan Sokolowski <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/hfi1/user_sdma.c