Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752814AbdGYPy5 (ORCPT ); Tue, 25 Jul 2017 11:54:57 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39063 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752156AbdGYPy4 (ORCPT ); Tue, 25 Jul 2017 11:54:56 -0400 Subject: Re: [PATCH] scsi: megaraid: fix ifnullfree.cocci warnings From: James Bottomley To: kbuild test robot , Romain Perier Cc: kbuild-all@01.org, "Martin K. Petersen" , Peter Senna Tschudin , Kashyap Desai , Sumit Saxena , Shivasharan S , megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 25 Jul 2017 08:48:45 -0700 In-Reply-To: <20170725154005.GA50912@lkp-hsx03.lkp.intel.com> References: <201707252301.SY4YDAmp%fengguang.wu@intel.com> <20170725154005.GA50912@lkp-hsx03.lkp.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 17072515-0040-0000-0000-000003857AA1 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007423; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00892734; UDB=6.00446239; IPR=6.00672898; BA=6.00005492; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016372; XFM=3.00000015; UTC=2017-07-25 15:48:52 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17072515-0041-0000-0000-00000779989F Message-Id: <1500997725.3689.14.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-25_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=2 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1707250251 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 23 On Tue, 2017-07-25 at 23:40 +0800, kbuild test robot wrote: > drivers/scsi/megaraid/megaraid_sas_fusion.c:608:2-18: WARNING: NULL > check before freeing functions like kfree, debugfs_remove, > debugfs_remove_recursive or usb_free_urb is not needed. Maybe > consider reorganizing relevant code to avoid passing NULL values. > drivers/scsi/megaraid/megaraid_sas_fusion.c:629:2-18: WARNING: NULL > check before freeing functions like kfree, debugfs_remove, > debugfs_remove_recursive or usb_free_urb is not needed. Maybe > consider reorganizing relevant code to avoid passing NULL values. > >  NULL check before some freeing functions is not needed. Hey, guys, we yelled at Markus Elfring for sending hundreds of patches like this.  The reason then was too much code churn for too little value: the if() might be unnecessary but it really doesn't cost very much in terms of execution time, so the code churn disadvantage greatly outweighs any benefits. The reason hasn't changed, so please stop this otherwise you're going to turn the very valuable 0day test infrastructure into a thousand patch spambot. James