Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1304851ybz; Wed, 29 Apr 2020 19:20:55 -0700 (PDT) X-Google-Smtp-Source: APiQypLw83s+6+SzfsYS0W21fpZ+1vlGzxeoh3I/XP3LpCexS47Mor+McIMdEu617+jbbzCThNJi X-Received: by 2002:a17:906:f90e:: with SMTP id lc14mr641878ejb.156.1588213255366; Wed, 29 Apr 2020 19:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588213255; cv=none; d=google.com; s=arc-20160816; b=v2T4v1vao/4aUbjrCJdSsxgk5KJjKyBYSBJj7YDN/l1WVAizBW21ADEwq6fqwG53el s8WSW4yPx4u03SK5Tkgt7Se6o4BwUl1RyDcWnBxGl3x78t7X6iZUXAh+lDAwuwq4EtWS XNgCEoQPTlMrxzgKDU73PNA5Up0166Wy/8SZnEO3n7RUP4S6t8o6rijHvZaUozdqm2Yw 5zjKRyUjMHe/hNux717ssq10sXrglBKlpvoM+AJI7nqMMObHjCU5VGoqCbjDRVTZ+Alv 7mCGuVsTYtCfd5CGAF9VkQ+YzmlWgzrLbm4tsMMR9fLDwyAO1PzHyOWweAII1WzzKhYF exag== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fPwXYJHHR+W1NjWv4Qp1lUFGK+tT0/YvyWBS49A3w8A=; b=Q2BqgOH4XV/+gob6yNNBV4Z/Mg2NRWNuGzfqsSL/EgnX6FviarZeVcU69S1cyjBuRK YcALoApYHg6X/zZHjzV88EJUr6ALdLCv3VwTxSCE0h8JwtUVG/dAyAYzRhmQHyXMEVY3 8oYUYcTVG9iqy0uTPZL4+dKVnYjclCtOkhowXOoLlRDwIBW9HK3M6Ds1VtJpcN/K8Z2z 73IjyB6QMicKRiF/0gJrwmErr7nsayTFaehPjO5hIFmOS99NgF8qfAk/nBG8UY92aywH jdCb1BCRbvYBKtq+WoMi+ozsupzZmFl5q74x3XMVZ+BtnoImFTwfQjzKFyiI2T/qmTWQ c2xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=uVdvH7xc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce9si4779653ejc.139.2020.04.29.19.20.31; Wed, 29 Apr 2020 19:20:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=uVdvH7xc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbgD3CSX (ORCPT + 99 others); Wed, 29 Apr 2020 22:18:23 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:39240 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726577AbgD3CSW (ORCPT ); Wed, 29 Apr 2020 22:18:22 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03U2CtXT122330; Thu, 30 Apr 2020 02:18:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=fPwXYJHHR+W1NjWv4Qp1lUFGK+tT0/YvyWBS49A3w8A=; b=uVdvH7xc8nB8GW0v2enQ3JuDJtigWeUCf/UjIS+k91HHUYsUx6ib/bNO3ynKXHa99ll2 comg/inARD5QvgyWcYAcCW6sLP0+t5c1chcOqQ2ODTpnWVRsYXr4RndVgWmMZSJMa9OA GpOng7ISeYTcaGbU7cJ5EDSMCIzTgl3Vw7qnN5uhDp10Ws3xrKyrzvBc42zPeRCuHUPs WuGftXL+GJiqt5biCsa0p42DmW5PMX5aUUKtmLv6UjsUvuhmnd6BLlz9r+mOBZPPFH4x DXHsNytxN+R3kT2UReSsTzFUk1wxy4NK9hvNd4FuIXN2chaQku04jiWONKoXx/htM0Jp Vg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 30nucg8wnf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Apr 2020 02:18:11 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03U2Gl4X141087; Thu, 30 Apr 2020 02:18:10 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 30mxpmf47e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Apr 2020 02:18:10 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03U2I99r008462; Thu, 30 Apr 2020 02:18:09 GMT Received: from ca-mkp.ca.oracle.com (/10.156.108.201) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 29 Apr 2020 19:18:09 -0700 From: "Martin K. Petersen" To: aacraid@microsemi.com, jejb@linux.ibm.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Xiongfeng Wang Cc: "Martin K . Petersen" Subject: Re: [PATCH] scsi: dpt_i2o: Remove always false 'chan < 0' statement Date: Wed, 29 Apr 2020 22:18:04 -0400 Message-Id: <158821297687.28621.4212963275967150101.b4-ty@oracle.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <1588162218-61757-1-git-send-email-wangxiongfeng2@huawei.com> References: <1588162218-61757-1-git-send-email-wangxiongfeng2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9606 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=788 malwarescore=0 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004300015 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9606 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 priorityscore=1501 mlxlogscore=859 impostorscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004300014 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Apr 2020 20:10:18 +0800, Xiongfeng Wang wrote: > The channel index is represented by an unsigned variable 'u32 chan'. We > don't need to check whether it is less than zero. The following > statement is always false and let's remove it. > 'chan < 0' Applied to 5.8/scsi-queue, thanks! [1/1] scsi: dpt_i2o: Remove always false 'chan < 0' statement https://git.kernel.org/mkp/scsi/c/6f41f08c88c5 -- Martin K. Petersen Oracle Linux Engineering