From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933913AbcBDFi3 (ORCPT ); Thu, 4 Feb 2016 00:38:29 -0500 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33586 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755748AbcBDFi1 (ORCPT ); Thu, 4 Feb 2016 00:38:27 -0500 Date: Thu, 4 Feb 2016 11:08:24 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Saravana Kannan , "Rafael J. Wysocki" , Linux PM list , Linux Kernel Mailing List , Srinivas Pandruvada , Juri Lelli , Steve Muckle Subject: Re: [PATCH 3/11] cpufreq: governor: Use common global_dbs_data pointer Message-ID: <20160204053824.GW3469@vireshk> References: <3705929.bslqXH980s@vostro.rjw.lan> <1876466.AY9fn15fDn@vostro.rjw.lan> <56B2A53C.8080503@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-02-16, 02:25, Rafael J. Wysocki wrote: > You are talking about something like this now: > > if (condition) > goto label; > > return 0; > > label: > do stuff > > I'm sorry, but I fail to see how this is easier to read than > > if (!condition) > return 0; > > do stuff I have seen few people (Like Dan Carpenter), mostly coccinelle guys, saying that we should write code like this: if (error) ... return success; Though I should accept that I would have written code the way Rafael has done this time, but those people get back everytime :) -- viresh