From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755493AbaFKHtX (ORCPT ); Wed, 11 Jun 2014 03:49:23 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:27084 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754833AbaFKHtW (ORCPT ); Wed, 11 Jun 2014 03:49:22 -0400 Date: Wed, 11 Jun 2014 10:47:04 +0300 From: Dan Carpenter To: Joe Perches Cc: Andrew Morton , Andy Whitcroft , LKML , Julia Lawall Subject: Re: [RFC PATCH] checkpatch: Attempt to find unnecessary 'out of memory' messages Message-ID: <20140611074704.GS5015@mwanda> References: <1402419340.30479.18.camel@joe-AO725> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1402419340.30479.18.camel@joe-AO725> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet21.oracle.com [141.146.126.237] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Dan Carpenter This check introduces 1849 new checkpatch.pl warnings. I looked through the first 70 warnings and there were no false positives. Besides the bloat issue, I don't like these warnings because they make the error handling harder to read. They are sort of a mindless thing that people feel they have to do for no particular reason. Since people aren't thinking when they write the error message then you get NULL dereferences and so on. regards, dan carpenter