From patchwork Fri May 3 06:20:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 241177 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pb0-x23b.google.com (mail-pb0-x23b.google.com [IPv6:2607:f8b0:400e:c01::23b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 755282C00AF for ; Fri, 3 May 2013 16:34:20 +1000 (EST) Received: by mail-pb0-f59.google.com with SMTP id up7sf365686pbc.14 for ; Thu, 02 May 2013 23:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=n9wUr2bXlPgU0XXWU1LxXJFqabPWa0GPgYuuoK4c3Fk=; b=Z+dJK/EmoqFNeFPjBVk1LBc439vx9e95JC1ZkX+Z1NVFhcvfJMrEFB+UlWQJCWiM1K DaW4oahzT4+KFsbejNBJECA6RD0seURdz7eMb096br68VC1GbXe20ARg1C0YLET0AwNT /SPMDcmKIFZw3kq6AnreHYU5YpuFijhsggJvk6LI90PapabTb49euNSVMDQciWGxCPTa sGeBfhKiEHL3dLXiw/IOwdIaMUYw6Tu8p8+eaAyuRLxZ+e5e5tJHhmQDYop467l5ZjGF sK055KhA21BkrBbO9gK1InCctVorMvZht2nhSWyAcfOjc5WjBSKFtMasx0fNjNkOO78k TOoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=n9wUr2bXlPgU0XXWU1LxXJFqabPWa0GPgYuuoK4c3Fk=; b=NOvvifqawbwyDZ9I1QSeuISKl6qzhNDYbRequPAPpZVtmY73piKx/woGUEYgBv3c+S u89GqjMkWnqcoUArhpxJXzZSqBZbEjuUHTFeDlBNmXmJqZxlf2w3Al2D5qnV9FwX0bfm cpbk3hoZC4bZv4MtjTMP5Z7p2TU+T6vrPrSV6i0oUHXChfPpLOI9dbg7DVBT6BDeXv3x ps/GuJQLsMD6qO4gfyZcOua5ir4awOdXqyjHLS9x46jLPhYzCq5Gu5OlGapUbGM8anIg rAz0zInsmXLY1DJn9sMd5i5UK9lEMuMBs2EQbMjYI4HGenNCXJtGE3qCmb8NlO7Uk9R4 oa4Q== X-Received: by 10.50.50.138 with SMTP id c10mr1421303igo.5.1367562857809; Thu, 02 May 2013 23:34:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.216.163 with SMTP id or3ls223840igc.10.gmail; Thu, 02 May 2013 23:34:17 -0700 (PDT) X-Received: by 10.66.163.8 with SMTP id ye8mr3912912pab.23.1367562857416; Thu, 02 May 2013 23:34:17 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by gmr-mx.google.com with ESMTPS id gk5si1703359pbc.0.2013.05.02.23.34.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 23:34:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id r11so763142pdi.30 for ; Thu, 02 May 2013 23:34:17 -0700 (PDT) X-Received: by 10.68.198.99 with SMTP id jb3mr8092498pbc.195.1367562857339; Thu, 02 May 2013 23:34:17 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id kr7sm11485494pab.23.2013.05.02.23.34.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 23:34:16 -0700 (PDT) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, akpm@linux-foundation.org, sachin.kamat@linaro.org Subject: [rtc-linux] [PATCH 01/26] drivers/rtc/rtc-v3020.c: Remove redundant goto Date: Fri, 3 May 2013 11:50:51 +0530 Message-Id: <1367562076-25713-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367562076-25713-1-git-send-email-sachin.kamat@linaro.org> References: <1367562076-25713-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmR0E6xjpfdR8dWayxP35/TKwoDQPFymnqLP0h5dJ/KM7+DjSMSEIZcdVU3o/mVpHhp/GuK X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Remove a redundant goto statement left over during the conversion of this driver to use devm_* APIs. Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-v3020.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index d87878e..97ec2cb 100644 --- a/drivers/rtc/rtc-v3020.c +++ b/drivers/rtc/rtc-v3020.c @@ -307,7 +307,7 @@ static int rtc_probe(struct platform_device *pdev) retval = chip->ops->map_io(chip, pdev, pdata); if (retval) - goto err_chip; + return retval; /* Make sure the v3020 expects a communication cycle * by reading 8 times */ @@ -351,7 +351,7 @@ static int rtc_probe(struct platform_device *pdev) err_io: chip->ops->unmap_io(chip); -err_chip: + return retval; }