diff options
| author | Austin Kim <austindh.kim@gmail.com> | 2019-09-19 03:55:48 -0400 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-09-23 23:09:42 -0400 |
| commit | 4b062e7cf940aa4f38fedc3a964b24cb095373f0 (patch) | |
| tree | 1571d73dd433ed271b899b516e278aad4f7dcd49 | |
| parent | f51913eef23f74c3bd07899dc7f1ed6df9e521d8 (diff) | |
scsi: qedf: Remove always false 'tmp_prio < 0' statement
Since tmp_prio is declared as u8, the following statement is always false.
tmp_prio < 0
So remove 'always false' statement.
Link: https://lore.kernel.org/r/20190919075548.GA112801@LGEARND20B15
Signed-off-by: Austin Kim <austindh.kim@gmail.com>
Acked-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
| -rw-r--r-- | drivers/scsi/qedf/qedf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 9c24f3834d70..1d2c111bdf82 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c | |||
| @@ -596,7 +596,7 @@ static void qedf_dcbx_handler(void *dev, struct qed_dcbx_get *get, u32 mib_type) | |||
| 596 | tmp_prio = get->operational.app_prio.fcoe; | 596 | tmp_prio = get->operational.app_prio.fcoe; |
| 597 | if (qedf_default_prio > -1) | 597 | if (qedf_default_prio > -1) |
| 598 | qedf->prio = qedf_default_prio; | 598 | qedf->prio = qedf_default_prio; |
| 599 | else if (tmp_prio < 0 || tmp_prio > 7) { | 599 | else if (tmp_prio > 7) { |
| 600 | QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, | 600 | QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, |
| 601 | "FIP/FCoE prio %d out of range, setting to %d.\n", | 601 | "FIP/FCoE prio %d out of range, setting to %d.\n", |
| 602 | tmp_prio, QEDF_DEFAULT_PRIO); | 602 | tmp_prio, QEDF_DEFAULT_PRIO); |
