IB/hfi1: Remove anti-pattern in cdev init
authorDennis Dalessandro <[email protected]>
Thu, 19 May 2016 12:22:03 +0000 (05:22 -0700)
committerDoug Ledford <[email protected]>
Thu, 26 May 2016 15:23:11 +0000 (11:23 -0400)
commitf3225c3f1107104f5e143797550476182b844cfb
treeda2709f72164057395bedccbffb74c270d9e6546
parentb583faf4dc6eaa64895c37b81983e75a8c3c1e4e
IB/hfi1: Remove anti-pattern in cdev init

Remove the usage of an anti-pattern goto in hfi1_cdev_init to improve
code readability.

Suggested-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/staging/rdma/hfi1/device.c