RDMA/i40iw: fix duplicated code for different branches
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 18 May 2017 18:11:17 +0000 (13:11 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 21:00:29 +0000 (17:00 -0400)
commite80bd98d1ff011beec872a8ebbb73930507d6a13
tree2794e8eb83f293f19a1b32e4b8940e94cc9a053f
parentf300ba2d1ef1cb8411daa5e1ae44acfa7b88236c
RDMA/i40iw: fix duplicated code for different branches

Refactor code to avoid identical code for different branches.

Addresses-Coverity-ID: 1357356
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_virtchnl.c