From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752976AbbJBSZQ (ORCPT ); Fri, 2 Oct 2015 14:25:16 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35363 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751919AbbJBSZM (ORCPT ); Fri, 2 Oct 2015 14:25:12 -0400 Date: Fri, 2 Oct 2015 11:25:07 -0700 From: Dmitry Torokhov To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Ferruh Yigit , Axel Lin , Pramod Gurav , Benjamin Tissoires , Heiko Stuebner , Fabio Estevam , Hans de Goede , Rasmus Villemoes , Rob Herring , Dirk Behme , Benson Leung , Shailendra Verma , Krzysztof Kozlowski , linux-input@vger.kernel.org, Duson Lin , Jingoo Han , Wolfram Sang , Wei Yongjun , Henrik Rydberg , Daniel Mack , Nick Dyer , Matt Ranostay , Dan Carpenter Subject: Re: [PATCH 00/18] Input - Fix make coccicheck warnings Message-ID: <20151002182507.GQ8437@dtor-ws> References: <1443793229-22363-1-git-send-email-javier@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443793229-22363-1-git-send-email-javier@osg.samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Javier, On Fri, Oct 02, 2015 at 03:40:11PM +0200, Javier Martinez Canillas wrote: > Hello Dmitry, > > This series contains trivial patches with fixes to different warnings > reported by make coccichek M=drivers/input. > > The patches don't contain functional changes but makes the functions > simpler and removes unnecessary lines of code. I disagree with some "simplify function return logic" patches: when there are several actions that may fail I prefer explicit: error = actionN(); if (error) return error; return 0; even on the last one as it keep with the code flow and makes it easier to move stuff around. Please consider patches that not explicitly replied to as applied a dropped. Thanks. -- Dmitry