From patchwork Fri Nov 23 07:00:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 201245 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-gg0-f184.google.com (mail-gg0-f184.google.com [209.85.161.184]) (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 935FA2C008A for ; Fri, 23 Nov 2012 18:06:43 +1100 (EST) Received: by mail-gg0-f184.google.com with SMTP id q3sf570757gge.11 for ; Thu, 22 Nov 2012 23:06:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:x-beenthere:received-spf: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=Gh+idvbg9hwgNxU5nRGIbpqQlKSX7iNPAG23OIHkW1o=; b=a4bruF729Eia2GyLSk4kbFu58uPlE21XcP5gUUgLFjlBP3urVe1T7BhVjBjyfDfoZD 0+d23dHWO1gHCR63nd/Rikkco6w0LZSz3VdusozW7/O3pX9HrZKHS3kSzH8BUGM2DjCU qQDQzUVvP/Kh9T4IokA5AMehZ2EPBLjk1zWlmXUIZCDHPK3oJ6RYd+8/WbBtxI89Se2O riGLeKgq652mowtjjI8EYlE32t+jARLEW5SYeTMsRD3snPx2VZd7Fhx9chsFDB1y7q93 PF5qviwWd7S7/tOrBPs9cz/scud5JAjOrhQIVpAO1BgQ8zlHck5S4/CmjWC0ygCsjFo1 1Z5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:received-spf: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=Gh+idvbg9hwgNxU5nRGIbpqQlKSX7iNPAG23OIHkW1o=; b=FM5jap5XvbnPFZIeNTKmzS4UK3pL2foCuJVcosX7efTNKWcCv7TkrdLGtuIJ6xNk7X FhWYl+6qGPuuiG283NSXk8WC2p7mNUyCwQAQmC3/V97CR40F6bfw08PIPgaArsNIWMTS V4A8KJ4PbqHh4ZQfmkRo0tj8RxosI/L9WQ8TbnvnG7WDlhl7LZD9GEuh/qHsdBdlGC7R S9I7vkRQmo59foBKeTyDBr9k8caGpujHXAGfzLBVXEAcCI/dYOQhJtVz5EQJV5GT99K+ muMzqqaL5aFLIHlD67z/b9kjmxDOeGDAoUWfDwdDmszAfOMl7g0usKsSxCGDou7QSsWc +OFw== Received: by 10.50.213.33 with SMTP id np1mr766740igc.3.1353654400811; Thu, 22 Nov 2012 23:06:40 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.1.167 with SMTP id 7ls282682ign.15.gmail; Thu, 22 Nov 2012 23:06:40 -0800 (PST) Received: by 10.66.84.38 with SMTP id v6mr644643pay.32.1353654400494; Thu, 22 Nov 2012 23:06:40 -0800 (PST) Received: by 10.66.84.38 with SMTP id v6mr644642pay.32.1353654400484; Thu, 22 Nov 2012 23:06:40 -0800 (PST) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by gmr-mx.google.com with ESMTPS id js4si1119331pbb.2.2012.11.22.23.06.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 23:06:40 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.47; Received: by mail-pb0-f47.google.com with SMTP id un1so4379053pbc.6 for ; Thu, 22 Nov 2012 23:06:40 -0800 (PST) Received: by 10.68.238.72 with SMTP id vi8mr11774369pbc.55.1353654400408; Thu, 22 Nov 2012 23:06:40 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id nm9sm3349142pbc.46.2012.11.22.23.06.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 23:06:39 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, patches@linaro.org Subject: [rtc-linux] [PATCH 1/2] drivers/rtc/rtc-s3c.c: Remove unnecessary err_nores label Date: Fri, 23 Nov 2012 12:30:18 +0530 Message-Id: <1353654019-1099-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353654019-1099-1-git-send-email-tushar.behera@linaro.org> References: <1353654019-1099-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQnGIdLSOXKnuUoS7qT9ECayDIw8aBmksenKyGy8NwVpUYPyDWecNj5Xh0NhbUR++AKPeL4s X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@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: , err_nores label redirects to a simple return statement. Move the return statement to caller location and remove the label. Signed-off-by: Tushar Behera --- drivers/rtc/rtc-s3c.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 77823d2..df7b478 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -501,8 +501,7 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev) if (s3c_rtc_mem == NULL) { dev_err(&pdev->dev, "failed to reserve memory region\n"); - ret = -ENOENT; - goto err_nores; + return -ENOENT; } s3c_rtc_base = ioremap(res->start, resource_size(res)); @@ -612,8 +611,6 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev) err_nomap: release_resource(s3c_rtc_mem); - - err_nores: return ret; }