IB/hfi1: Fix code consistency for if/else blocks in chip.c
authorJan Sokolowski <jan.sokolowski@intel.com>
Mon, 24 Jul 2017 14:46:18 +0000 (07:46 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 31 Jul 2017 19:17:55 +0000 (15:17 -0400)
commit59ec8736956456b7429bbfd613b288928416a0f0
tree749da25b1c3fa1b5b11d9fd7f87a3e46dc40a93e
parentbf90aadd630c2c9f7f965ba1e90d41b5b46db7c9
IB/hfi1: Fix code consistency for if/else blocks in chip.c

Code structure is not consistent for if/else blocks and break
instructions in set_link_state for case HLS_UP_INIT. Physical
state uses break in case of an error and if/else blocks for
logical use cases. These blocks should be implemented consistently.

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/chip.c