scsi: pmcraid: fix duplicated code for different branches
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 13 Aug 2017 01:26:32 +0000 (20:26 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:05 +0000 (22:29 -0400)
commitdb269932b97e8e7d2bc974dc6a63cb795ddd7e54
tree9de62464b39c4e72ac6cdb0036ed345163273e74
parent60747936bd5c0f7de2179f7076fe89ad93675680
scsi: pmcraid: fix duplicated code for different branches

Refactor code in order to avoid identical code for different branches.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c