From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752267AbbCKOCw (ORCPT ); Wed, 11 Mar 2015 10:02:52 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:44689 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbbCKOCu (ORCPT ); Wed, 11 Mar 2015 10:02:50 -0400 Date: Wed, 11 Mar 2015 15:02:47 +0100 From: Quentin Lambert To: Lidza Louina , Mark Hounschell , Greg Kroah-Hartman Cc: kernel-janitors@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Introducing goto for error and lock handling Message-ID: <20150311140247.GA17012@sloth> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 The first patch fix a missing call to dgnc_tty_uninit. The other two patches focus on the TODO item: use goto statements for error handling when appropriate The second patch resolves cases where the improvement seems clear. The third patch deals with cases where the added value did not seem as important or the changes felt more complex. Quentin Lambert (3): Staging: dgnc: dgnc_driver: Add a missing call to dgnc_tty_uninit Staging: dgnc: Use goto for error handling Staging: dgnc: Use goto for spinlock release before return drivers/staging/dgnc/dgnc_cls.c | 19 ++++++--------- drivers/staging/dgnc/dgnc_driver.c | 13 +++-------- drivers/staging/dgnc/dgnc_neo.c | 30 ++++++++++-------------- drivers/staging/dgnc/dgnc_tty.c | 48 ++++++++++++++++++-------------------- 4 files changed, 45 insertions(+), 65 deletions(-) -- 1.9.1