[007/117] lpfc: Reformat four comparisons

Message ID 20210420000845.25873-8-bvanassche@acm.org
State New
Headers show
Series
  • Make better use of static type checking
Related show

Commit Message

Bart Van Assche April 20, 2021, 12:06 a.m.
Reformat four comparisons because otherwise Coccinelle would make the
formatting of these comparisons look weird.

Cc: James Smart <james.smart@broadcom.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 drivers/scsi/lpfc/lpfc_scsi.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

Comments

James Smart April 21, 2021, 8:22 p.m. | #1
On 4/19/2021 5:06 PM, Bart Van Assche wrote:
> Reformat four comparisons because otherwise Coccinelle would make the

> formatting of these comparisons look weird.

> 

> Cc: James Smart <james.smart@broadcom.com>

> Signed-off-by: Bart Van Assche <bvanassche@acm.org>

> ---

>   drivers/scsi/lpfc/lpfc_scsi.c | 12 ++++--------

>   1 file changed, 4 insertions(+), 8 deletions(-)

> 



Thanks

Reviewed-by: James Smart <jsmart2021@gmail.com>


-- james

Patch

diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index eefbb9b22798..81455b53ef3e 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -4227,11 +4227,9 @@  lpfc_fcp_io_cmd_wqe_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pwqeIn,
 		if (lpfc_cmd->result & IOERR_DRVR_MASK)
 			lpfc_cmd->status = IOSTAT_DRIVER_REJECT;
 		if (lpfc_cmd->result == IOERR_ELXSEC_KEY_UNWRAP_ERROR ||
-		    lpfc_cmd->result ==
-		    IOERR_ELXSEC_KEY_UNWRAP_COMPARE_ERROR ||
+		    lpfc_cmd->result == IOERR_ELXSEC_KEY_UNWRAP_COMPARE_ERROR ||
 		    lpfc_cmd->result == IOERR_ELXSEC_CRYPTO_ERROR ||
-		    lpfc_cmd->result ==
-		    IOERR_ELXSEC_CRYPTO_COMPARE_ERROR) {
+		    lpfc_cmd->result == IOERR_ELXSEC_CRYPTO_COMPARE_ERROR) {
 			cmd->result = DID_NO_CONNECT << 16;
 			break;
 		}
@@ -4502,11 +4500,9 @@  lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
 		case IOSTAT_LOCAL_REJECT:
 		case IOSTAT_REMOTE_STOP:
 			if (lpfc_cmd->result == IOERR_ELXSEC_KEY_UNWRAP_ERROR ||
-			    lpfc_cmd->result ==
-					IOERR_ELXSEC_KEY_UNWRAP_COMPARE_ERROR ||
+			    lpfc_cmd->result == IOERR_ELXSEC_KEY_UNWRAP_COMPARE_ERROR ||
 			    lpfc_cmd->result == IOERR_ELXSEC_CRYPTO_ERROR ||
-			    lpfc_cmd->result ==
-					IOERR_ELXSEC_CRYPTO_COMPARE_ERROR) {
+			    lpfc_cmd->result == IOERR_ELXSEC_CRYPTO_COMPARE_ERROR) {
 				cmd->result = DID_NO_CONNECT << 16;
 				break;
 			}