summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin Kim <austindh.kim@gmail.com>2019-09-19 09:55:48 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-09-24 05:09:42 +0200
commit4b062e7cf940aa4f38fedc3a964b24cb095373f0 (patch)
tree1571d73dd433ed271b899b516e278aad4f7dcd49
parentscsi: ufs: skip shutdown if hba is not powered (diff)
downloadlinux-4b062e7cf940aa4f38fedc3a964b24cb095373f0.tar.xz
linux-4b062e7cf940aa4f38fedc3a964b24cb095373f0.zip
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.c2
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)
tmp_prio = get->operational.app_prio.fcoe;
if (qedf_default_prio > -1)
qedf->prio = qedf_default_prio;
- else if (tmp_prio < 0 || tmp_prio > 7) {
+ else if (tmp_prio > 7) {
QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC,
"FIP/FCoE prio %d out of range, setting to %d.\n",
tmp_prio, QEDF_DEFAULT_PRIO);