Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5575746ybe; Tue, 10 Sep 2019 06:00:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+BRlFhx42uJW4O4HcQj7rql5fWntS/eDvwg+hgrWii1rwAW4v/G7zy3ssVM5jtAjaXocv X-Received: by 2002:aa7:c443:: with SMTP id n3mr30573050edr.277.1568120437304; Tue, 10 Sep 2019 06:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568120437; cv=none; d=google.com; s=arc-20160816; b=Dtw9dhhfrMdqNcW2m9MDJkxJzCqgbD3uy7EdEE9jTRtMTrY2STkpXl9L3DKSE3vxCh ASnC5Cs+y+glEFoGqbUUhM7LjLFYegAMXx+RDH+hQcPcj0sfyFd/NjQYD/xtOSZT9qi1 Sp9zAMvESKztkSlmYSJCef41QQb1xIMcw1kKANqMFca5oYJgw/Atv8v3rWu0Cn/EkR8p OY6OimEKsyvwZBX8tE86Ticn+xgTSKipPqnmq0Rjcwdg2xThgbRR7xkKtZcj84GjCvlZ J6Yt/O0K141Q2OTujBNPMfywfGJktZ7MGnOJBlZpDlZpRemyHEK06r/gQxiU358cg5Ji Sg8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=frO/4e4TV6SO1RRZqWT4we5pX4/lanaUDNg2viAs+M8=; b=pr+dGmusS+K9l4/7simVlmjLY9J0SOofWFpVtqjCZxq5Q066n3zDKhetnpc4VrhMAi /GGR+PbUrWTmt7IiKxrW5v6k/ehabzdsUbfwcRhkvI0+rV4uRg3oyzRhWmu/ZMiggacu zxeBN8hh1ZO3G2l65VVnDcbQy2QespFOq0IjAt4GeyrCZTTTTXSdZjz7T19pRsyunwk3 cPzHPwkvjFQObKYDw8m5O1d2nL6Uq01t9QcFc2GAiWXYXlMBS1h0r+G5PHQcZbXh6Csc sa5dBK8HO0oEvG768zMbC37wfDpGpE7mldemRP4UJkaT5WH+lsgJknlpoZGUwE1e+F3D 3xgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nv5Oj6uq; 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 c7si883216edq.168.2019.09.10.06.00.12; Tue, 10 Sep 2019 06:00:37 -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=nv5Oj6uq; 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 S2392930AbfIJLSH (ORCPT + 99 others); Tue, 10 Sep 2019 07:18:07 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39293 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392848AbfIJLSG (ORCPT ); Tue, 10 Sep 2019 07:18:06 -0400 Received: by mail-qk1-f196.google.com with SMTP id 4so16527437qki.6; Tue, 10 Sep 2019 04:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=frO/4e4TV6SO1RRZqWT4we5pX4/lanaUDNg2viAs+M8=; b=nv5Oj6uq2Kul7q7iwz0WJZUmQBxNZYQuCmJM1wWz2mpnaISpld8W+mb5BFrlrkjTHC 8BGIPSecP45RYl26aOXhk4EUh/xUDoum9Os+LYpHUg0bqOlTrsOlK1C12rhF+EqPlLTN ytzxDTifEbFNVaFZvJcerT1ty3JNdxBWGf0gMM56kRCgIqPHq5MULth5Z9txeY6L1SoP TjOWfrqPN2PwTM3BQOFf+zIYeuDmsuCmv/jAVhEqYLyHEiPnfOhv9FUdWaXaN/VlJ/5S 80xdUSGZKKNnGeGx6d5g2/0J6oQX3VVI20/iI+1vBLoWHVpGR7IFXIwIW03fShgmkzkB YsAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=frO/4e4TV6SO1RRZqWT4we5pX4/lanaUDNg2viAs+M8=; b=G1kpSYU9ocUDy0OiS7qgWzYAB44KJDQg3b7y3No0iBkOqNW04b8Wee1d5sHc4bFd+5 uczpiqpOzGnNb1SmMdx5D9Lb3SHHN/G81TLICSEXDBfdDPdNPZZ3MO20hz4XjUB2bFYy tFcJtcJqqxyDj26d5rZd7O8VO85/2hU5L/Ha00JejTCSs4oJjMW2DsNjGbjGhmXBw+J4 mCC1S0/sJhEqFqIa0/SRPfHPQrpVknM6ViF4dqSYvKB83SQm1TZ4tiseTHi31kwTaUfa ss2O58GVvAXCjbmiRibd8gsUaYk91jfYrU9rZ9NnmNZG6Vwk0qT+veLkIkyXJj3fPV59 SeAg== X-Gm-Message-State: APjAAAXnDSPNrTUcNtTVJC1qX5Smx6nQYMguA2dYeB6NhkbtKrLAodov hrK6/FQWK/8ftW2FwEuEy8/Df2rPbTAYrQ7b4lU= X-Received: by 2002:a37:a946:: with SMTP id s67mr29298195qke.470.1568114285444; Tue, 10 Sep 2019 04:18:05 -0700 (PDT) MIME-Version: 1.0 References: <20190909054219.GA119246@LGEARND20B15> In-Reply-To: <20190909054219.GA119246@LGEARND20B15> From: Austin Kim Date: Tue, 10 Sep 2019 20:17:59 +0900 Message-ID: Subject: Re: [PATCH] scsi: dpt_i2o: drop unnecessary comparison statement To: aacraid@microsemi.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Maintainers... Would you please review this patch and share the feedback? Thanks, Austin Kim 2019=EB=85=84 9=EC=9B=94 9=EC=9D=BC (=EC=9B=94) =EC=98=A4=ED=9B=84 2:42, Au= stin Kim =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > The type of 'chan' is u32 which contain non-negative value. > So 'chan < 0' is statment is always false. > > Remove unnecessary comparison statement > > Signed-off-by: Austin Kim > --- > drivers/scsi/dpt_i2o.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c > index abc74fd..df48ef5 100644 > --- a/drivers/scsi/dpt_i2o.c > +++ b/drivers/scsi/dpt_i2o.c > @@ -1120,7 +1120,7 @@ static struct adpt_device* adpt_find_device(adpt_hb= a* pHba, u32 chan, u32 id, u6 > { > struct adpt_device* d; > > - if(chan < 0 || chan >=3D MAX_CHANNEL) > + if(chan >=3D MAX_CHANNEL) > return NULL; > > d =3D pHba->channel[chan].device[id]; > -- > 2.6.2 >