From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753056AbZHZEbx (ORCPT ); Wed, 26 Aug 2009 00:31:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751374AbZHZEbw (ORCPT ); Wed, 26 Aug 2009 00:31:52 -0400 Received: from mail.perches.com ([173.55.12.10]:1384 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751062AbZHZEbv (ORCPT ); Wed, 26 Aug 2009 00:31:51 -0400 Subject: Re: Initial work for ar9271 From: Joe Perches To: "Luis R. Rodriguez" Cc: linux-wireless , linux-kernel@vger.kernel.org, Christian Lamparter , Johannes Berg , "John W. Linville" , Greg KH , Stephen Chen , Zhifeng Cai , Cliff Holden , Christoph Hellwig , Len Widra In-Reply-To: <43e72e890908252103j2332d8eat9e18fecb20a1fe58@mail.gmail.com> References: <43e72e890908252103j2332d8eat9e18fecb20a1fe58@mail.gmail.com> Content-Type: text/plain Date: Tue, 25 Aug 2009 21:31:50 -0700 Message-Id: <1251261111.3463.15.camel@Joe-Laptop.home> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2009-08-25 at 21:03 -0700, Luis R. Rodriguez wrote: > If you'd like to work on the > driver I welcome patches: > > git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/ar9271.git I think this style ugly because it's non kernel standard. int func(args) { do { [ linear code ...] if (err) { errorcode = ; break; } [ more linear code ...] } while (0); if (errorcode) { handle()... return some_err; } return 0; } It's a bit too much like a try/throw/catch block. Are patches accepted to convert it to the more commonly used kernel style using gotos?