Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3291182ybz; Mon, 27 Apr 2020 13:26:29 -0700 (PDT) X-Google-Smtp-Source: APiQypIQ9roaiCRwfVrxt4bZnuNFq8gLRD3dmNdtAvrhdlSfWg77+E3873y6kpplZMPLs11RSwiK X-Received: by 2002:a17:906:4bc9:: with SMTP id x9mr20907271ejv.27.1588019189647; Mon, 27 Apr 2020 13:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588019189; cv=none; d=google.com; s=arc-20160816; b=xIKkK0lRLO47BRbANunCYRi6Vl9oE35Wr9BuajjWU7MpuEOQoflrkpvmHULtY6F4Q8 khFY0R7kBe50E1vafTkKMpix4TbGTq7AL3S9l6zxJMKGX5aZfcZQbLx8K1mp7YMG/cPF vskOmMYMhYNzlBrczrhtWfO2LZi6bExVzvjb4J+EGse/4dQA8oCQIq2nEefZxiBWS5JZ sPskYojbq8CgbGNV5/+0zjOIraENWFsMWBv1Yql/OurmmM2cB5SZYFWeNKJ5Oe4BOl6f 8NmpF6II1MDJrPWNGoHA9W9ncY5zZ5U/8dMFewnIW208bEeLngm73NXzCYllpCfxG5vN y13w== 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=/+pZx41XHArfsyFeEjJ5ld06Vs7Zx4r40s1zbN7hUrA=; b=suUPBDl+h8sbFjqBs2oBjNmiaEcZ3ueTFF3NAecpteGh2wIQG2e0+QAI5WHLI3jeJZ TUvQSlgqsaWbVmexQ6ZsYK3tYDnNm5RnCsKZlssW2w2pyFwbpu28xKzL/kNF64zNU7Si R0P9EoYD5i2+s+I7dD8WZSYSABr4+KsuNKNZjwfakyPjdhksMVdtgykLlVJtxsm72mOy 7QoZRQQdqvSQMxXbbNe27ptdo/Saz3CmY6HKcRNryaCY8ufb2uF75lTR7RsAEXREtYCY ev2wBHu8IH6ak++oqvVfHIODiykBZoJTNgHTqhK1c28Hz4FIEGCbnIk3IgZUw7JNtslI JxDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="tc6Y/a2b"; 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 a7si386386edb.221.2020.04.27.13.26.06; Mon, 27 Apr 2020 13:26:29 -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="tc6Y/a2b"; 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 S1726956AbgD0UXl (ORCPT + 99 others); Mon, 27 Apr 2020 16:23:41 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:58532 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbgD0UXk (ORCPT ); Mon, 27 Apr 2020 16:23:40 -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 03RKMmkD011257; Mon, 27 Apr 2020 20:23:33 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=/+pZx41XHArfsyFeEjJ5ld06Vs7Zx4r40s1zbN7hUrA=; b=tc6Y/a2b/6vXjx4G6YSPQdeK6PC894jzAMNsn9+d7fk7MiGUkH3Uffu6O3VpVZkumvEV +YA/78KIU5+T9VO5fnjrd5nUKrBP2gqMmMWA8Ak+8iCkJNiHl6NMrO1QRzozMzZJjrAU 81U7IHwFKn+8Y6+RA0cs0MHHYvVzz3VADsT/kHb/1XsWgj7kCGVnNn98vT2wGw1BceS3 eQ2XZ0D664EJXfQueFHAgzS0efh4Atho7duclpBNH2pM7we6BJTyFVzwsXug2th2H0XS RAnTrIUSVZjOJIcHVyHbJNcCi52yR8Pip4venk7rm1DpWiOIcdvaucSbrvOMN/i9qwle gg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 30nucfuw9u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Apr 2020 20:23:33 +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 03RKC0GY078457; Mon, 27 Apr 2020 20:21:33 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 30mxrr068c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Apr 2020 20:21:33 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03RKLUVw006413; Mon, 27 Apr 2020 20:21:31 GMT Received: from ca-mkp.ca.oracle.com (/10.156.108.201) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 27 Apr 2020 13:21:30 -0700 From: "Martin K. Petersen" To: chaitra.basappa@broadcom.com, linux-kernel@vger.kernel.org, MPT-FusionLinux.pdl@broadcom.com, suganath-prabu.subramani@broadcom.com, jejb@linux.ibm.com, sreekanth.reddy@broadcom.com, linux-scsi@vger.kernel.org, Jason Yan , sathya.prakash@broadcom.com Cc: "Martin K . Petersen" , Hulk Robot Subject: Re: [PATCH] scsi: mpt3sas: remove NULL check before freeing function Date: Mon, 27 Apr 2020 16:21:19 -0400 Message-Id: <158777063304.4076.2246391298173254384.b4-ty@oracle.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200418095850.34883-1-yanaijie@huawei.com> References: <20200418095850.34883-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9604 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 suspectscore=0 mlxlogscore=794 malwarescore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004270164 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9604 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 priorityscore=1501 mlxlogscore=850 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-2004270165 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Apr 2020 17:58:50 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/mpt3sas/mpt3sas_base.c:4906:3-19: WARNING: NULL check > before some freeing functions is not needed. Applied to 5.8/scsi-queue, thanks! [1/1] scsi: mpt3sas: Remove NULL check before freeing function https://git.kernel.org/mkp/scsi/c/baf3fbf26cc0 -- Martin K. Petersen Oracle Linux Engineering