Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp631372ybe; Thu, 19 Sep 2019 00:58:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwm1caM7O5HjtbzC8V1dKYRkAnqBse6em9pG6sK5LG9RtKXwnPYl+E6Hf3s4S2chfz32Vyy X-Received: by 2002:a17:906:860d:: with SMTP id o13mr12924690ejx.284.1568879909980; Thu, 19 Sep 2019 00:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568879909; cv=none; d=google.com; s=arc-20160816; b=VjzoIJ+lcn3tfvfziyAlff8AZ3eFmjKIV3AVHnVtYmEF9de1KfiereLTiwnfz5cXGn BzhHi9sMZ6e3x1TG89w1c3eZbdzd0g3lyroyDmRuHOsXFjrhH4MRWF67XrkmJ9V4ZIDb Z6rO49Dn+58Od5HNATn1aXfYLEOHqkAJ/JMzZLpFyPiiX9J9oDIKwjCJNXO/tZrNJPxM r3Hq9teZZs/7I+PZqYukFjCXZR0xf1Tnmp4vP+9GO82Uo9wOhSpLUEvA/pZGx6FQhhKA a94eBxtyOK45GOpQICNTIrUrCDPVpz+JSo8+MQ8SQt6yYqiDULF2iCKysu534RHn9hxw bAYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=mRA/d6yGGyz12Y4WV+zZOQ6cVlrDjX67UkfMk4HR8Jk=; b=D6DMMhRa9B6mbsaqX3EEnkIRTtWylnu+wcwp2qG4JU4x56LNLBPEnhrwMZimzuTu05 wcwHC/+YaYXAPTZfWNY9atWQ/M4mLjth4LqFRJ9EtS+GFnDORsz3bVB2F7bZBSlTJ0Y7 zuaXqRryrQgkDMS9+P8IkMTrendqWP7CoPss5ON4y0e2qwwO8M8M76LNFOPXYFVBr28W J4I4Ei4/sDU/uR8QyOZ1F5MByVDQy4zJV1v2pulw0a5n2cRfq62pz+KOtIOnBxXer3o2 +7vXs58SpNPUBdpJmLzig0Y2Um2cp6E7FWEVwwV6Fmjun8aN9T2N4KtRHTTbanZbVuIx LWxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tFdvkVKt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qn24si856613ejb.200.2019.09.19.00.58.03; Thu, 19 Sep 2019 00:58:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tFdvkVKt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731171AbfISHz4 (ORCPT + 99 others); Thu, 19 Sep 2019 03:55:56 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46720 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729833AbfISHz4 (ORCPT ); Thu, 19 Sep 2019 03:55:56 -0400 Received: by mail-pg1-f195.google.com with SMTP id a3so1379870pgm.13; Thu, 19 Sep 2019 00:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=mRA/d6yGGyz12Y4WV+zZOQ6cVlrDjX67UkfMk4HR8Jk=; b=tFdvkVKtsCwrK5ccV9e4F6GfeW594gYwXdFnfFjeLRahIGNr5KYP6NiWNcLzG7yzsZ TXXjmiIgVen0njMvik8r3Ev9O5+1jSr1Ek6VDkl7WzoetHsPBDxKuAYe6qtanGJRsY5H O8YfYxJsICIAEt9FreSjT6nGZo9aydpxHyCWPdaK/Lu0mIkpPOcqyB4lVfJfLfcteaXz BeDjAmP9NOMHI7GIdxjBUOaaZDYg2g8GWPmXWUZ3LYyZx4eHqs4i+g7CqkzTSsalPkE4 OuhAg6N2RF10LGb9RvD2oZGArrj8M86S3jegXeFxeY9FXO+lXWw5JNhutr9MHGb/cpnk h6/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=mRA/d6yGGyz12Y4WV+zZOQ6cVlrDjX67UkfMk4HR8Jk=; b=QUwzqTMCva+/cuzcw5lwCWCY73x7LSUUZkK0zZRXfe8mpakPRxuoZq5QOCHNwLPzq/ E9KGe8eFYVDxsk7zEPtlUzMkQmC0YqpkM7Zh5PQEqV2WGBf8hINBkzTj6/weAEJJ3Fcq jGkj8k2TxpfxRQ/n7jORafzLqaODxaECO9pj8TM03i9UG20cVDO3xAnN+oblGiOp+Txb UHbj3PqFujjKy1hFA4o8q9qKiXMqJW3QpP4yptWX+7zt3oGzZybDBgOH3JbmQKlWsPB/ tVFllNs6Whqv01o8gI422VG/l6iQoWNe8Zild4z4mfhsiNai1NpAjsEHbcLtZFMA44rM 6QaQ== X-Gm-Message-State: APjAAAU/6oyhudfqZLECQXhVkWjQTkM597DZHatiyMcJ8IhCc6Awbn/S fj3/TQmz36PU9QZEoDyhH+0= X-Received: by 2002:a17:90a:17c5:: with SMTP id q63mr2237368pja.106.1568879753903; Thu, 19 Sep 2019 00:55:53 -0700 (PDT) Received: from LGEARND20B15 ([27.122.242.75]) by smtp.gmail.com with ESMTPSA id s21sm4377625pjr.24.2019.09.19.00.55.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Sep 2019 00:55:53 -0700 (PDT) Date: Thu, 19 Sep 2019 16:55:48 +0900 From: Austin Kim To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, QLogic-Storage-Upstream@cavium.com, austindh.kim@gmail.com Subject: [PATCH] scsi: qedf: Remove always false 'tmp_prio < 0' statement Message-ID: <20190919075548.GA112801@LGEARND20B15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since tmp_prio is declared as u8, the following statement is always false. tmp_prio < 0 So remove 'always false' statement. Signed-off-by: Austin Kim --- drivers/scsi/qedf/qedf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 1659d35..59ca98f 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); -- 2.6.2