Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp961190pxb; Thu, 19 Nov 2020 19:23:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8QxbD4MKvCpfs6yaC6afFGyyHqHGXpBuZfDw3qL+6+yhVqQNPkThqwGFljODV9ih6N9k5 X-Received: by 2002:a17:906:604e:: with SMTP id p14mr32849197ejj.515.1605842581584; Thu, 19 Nov 2020 19:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605842581; cv=none; d=google.com; s=arc-20160816; b=rHHpexCTwv/ZI5oh6Bh+YJT2RVTOiXm1/xmFKEnx4w66b/mL582ecgZfHx7Jg8zsgk AL5p/1JcyDNxAMAV/zaHgulA+/P3idJW440kCAt7rygWSoZ1auj33Sz7o7HpVRiOTeBa a9dMEuotbjGWAQII7MG67jM8D6rzYXDT1pmJwYvW6p4SwlEsFAMPjbv0YJi73fHWhV51 e5bKrZCMKfrm3NKXi3J7M6PsawK9/mb26AS6kaVgMR8dWnn66OK9ypRPHHXitDz5Sb4w 2wZaxbWl3oy+6E8VvdWOCGWnwVqPAwmJGQzkkYzMYvjKo9Mb/3Dmx+m1PhUAtcpj7J77 rOqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:date:references :message-id:organization:from:subject:cc:to:dkim-signature; bh=kzhRRpx5yRu6Z9t5GD0RCUXCFpjzDl5U8XfrLeTFP+g=; b=mWy4JowrQPwM+/9X4WJzujWZ+8YPjyyFqs9/rtzKoHRFBPF+Tac6NFKnNBWfpPGOvp X7oJqyJW5TTjERo+N1oy3S+d6h4fMxVCB+Ge92zBZyGZQQm2+crbxaXk2u9t5Iz9uklV +c3tKd0vrie0pg2xdXa5+p+pikdG+Wtw6cNrFGbMUdfizeFUZqIyG5hWNz2PxqRta1qA dFZw5vrXadbDvHGTTyJX2U3zlSXN02sYLmhcrZi4JKayO03UBsHH1njuyHVNtar7nfOi rYSt5TSWplwFC+J40lwEN5Za9t0gZvze+g6RA0M2cKFNFR9Y1+fH9fDA6ymOfgwnA/wU jOSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Zs4kb1Aj; 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 jx18si953455ejb.601.2020.11.19.19.22.39; Thu, 19 Nov 2020 19:23:01 -0800 (PST) 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=Zs4kb1Aj; 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 S1726683AbgKTDTU (ORCPT + 99 others); Thu, 19 Nov 2020 22:19:20 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:38702 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbgKTDTU (ORCPT ); Thu, 19 Nov 2020 22:19:20 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AK3AgTr044992; Fri, 20 Nov 2020 03:19:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : message-id : references : date : in-reply-to : mime-version : content-type; s=corp-2020-01-29; bh=kzhRRpx5yRu6Z9t5GD0RCUXCFpjzDl5U8XfrLeTFP+g=; b=Zs4kb1AjNGaftfwGu0N6OezyO8gydHwP+aN/vltVazFoFRMTOZwidSohYh+Ifmws0mmv sx/rVR3aNGNpF4ULmchHvpcxXiY3SckP8ZeZFPUTL6av8UqzwD8Q+mJEhI87LdHEYksj iQYxXxNnbctLL0mg1KgS2uWw0HzniUAScX5Z/RMnehJU+ImNDSZ5he324Ts/0cB0GkRt Z4V1Zvh6cyGhIhy2zWi+qvm5Xn4oqVuqKdAffuJrpJnkhgFN2PdtNVMAWyGTZciwJVQ4 keVHR08r3HIBBWFblv/VBNmjjJ3vu3kHl6r2lgeAQX09DftQQ2Vyivrvx5pZvqYyNMoY Tw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 34t4rb8t9h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Nov 2020 03:19:15 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AK35ijx166517; Fri, 20 Nov 2020 03:17:15 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 34uspx23u2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Nov 2020 03:17:15 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0AK3HErV019707; Fri, 20 Nov 2020 03:17:14 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 19 Nov 2020 19:17:14 -0800 To: Colin King Cc: James Smart , Dick Kennedy , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] scsi: lpfc: remove dead code on second !ndlp check From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: <20201118133744.461385-1-colin.king@canonical.com> Date: Thu, 19 Nov 2020 22:17:12 -0500 In-Reply-To: <20201118133744.461385-1-colin.king@canonical.com> (Colin King's message of "Wed, 18 Nov 2020 13:37:44 +0000") MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9810 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 mlxscore=0 bulkscore=0 suspectscore=1 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011200022 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9810 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 clxscore=1015 malwarescore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 phishscore=0 suspectscore=1 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011200022 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin, > Currently there is a null check on the pointer ndlp that exits via > error path issue_ct_rsp_exit followed by another null check on the > same pointer that is almost identical to the previous null check > stanza and yet can never can be reached because the previous check > exited via issue_ct_rsp_exit. This is deadcode and can be removed. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering