hpsa: logical vs bitwise AND typo
PATCH 1/1 hpsa: logical vs bitwise AND typo
HPSA_DIAG_OPTS_DISABLE_RLD_CACHING is a mask and bitwise AND was intended here instead of logical &&. This bug is essentially harmless, it means that sometimes we don't print a warning message which we wanted to print.
drivers/scsi/hpsa.c +1 -1
@@ -8671,7 +8671,7 @@ static void hpsa_disable_rld_caching(struct ctlr_info *h)if ((rc !=0 ) || (c->err_info->CommandStatus !=0 )) goto errout; -if (*options &&HPSA_DIAG_OPTS_DISABLE_RLD_CACHING ) +if (*options &HPSA_DIAG_OPTS_DISABLE_RLD_CACHING ) goto out; errout:
Quoted 21 lines · Dan Carpenter
HPSA_DIAG_OPTS_DISABLE_RLD_CACHINGis a mask and bitwise AND was intended here instead of logical &&. This bug is essentially harmless,
it means that sometimes we don't print a warning message which we wanted
to print.Fixes c2adae44e916 ('hpsa: disable report lun data caching')Signed-off-by Dan Carpenter <[email protected]>drivers/scsi/hpsa.c +0
-0@@ -8671,7 +8671,7 @@ static void hpsa_disable_rld_caching(struct ctlr_info *h) if ((rc != 0) || (c->err_info->CommandStatus != 0)) goto errout;drivers/scsi/hpsa.c +1
-1-if (*options &&HPSA_DIAG_OPTS_DISABLE_RLD_CACHING ) +if (*options &HPSA_DIAG_OPTS_DISABLE_RLD_CACHING )
Quoted 3 lines
goto out;
errout:
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 37 lines · Johannes Thumshirn
Quoted 23 lines · Dan Carpenter
HPSA_DIAG_OPTS_DISABLE_RLD_CACHINGis a mask and bitwise AND was intended here instead of logical &&. This bug is essentially harmless,
it means that sometimes we don't print a warning message which we wanted
to print.Fixes c2adae44e916 ('hpsa: disable report lun data caching')Signed-off-by Dan Carpenter <[email protected]>drivers/scsi/hpsa.c +1
-1@@ -8671,7 +8671,7 @@ static void hpsa_disable_rld_caching(struct ctlr_info *h)if ((rc !=0 ) || (c->err_info->CommandStatus !=0 )) goto errout; -if (*options &&HPSA_DIAG_OPTS_DISABLE_RLD_CACHING ) +if (*options &HPSA_DIAG_OPTS_DISABLE_RLD_CACHING ) goto out;Quoted 1 line
errout:
Reviewed-by Johannes Thumshirn <[email protected]>Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlSigned-off-by Don Brace <[email protected]>--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Martin K. Petersen
AppliedQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Dan" = Dan Carpenter <[email protected]> writes:
Dan> HPSA_DIAG_OPTS_DISABLE_RLD_CACHING is a mask and bitwise AND was Dan> intended here instead of logical &&. This bug is essentially Dan> harmless, it means that sometimes we don't print a warning message Dan> which we wanted to print.
Applied.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering