Message ID | 20170325155618.GA2806@belen-VirtualBox (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 83228601E9 for <patchwork-linux-rockchip@patchwork.kernel.org>; Sat, 25 Mar 2017 15:56:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 256FE27FA0 for <patchwork-linux-rockchip@patchwork.kernel.org>; Sat, 25 Mar 2017 15:56:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0679728047; Sat, 25 Mar 2017 15:56:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE7D327FA0 for <patchwork-linux-rockchip@patchwork.kernel.org>; Sat, 25 Mar 2017 15:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CrAUnHkJfWaCNUcpQ7MH3EFuOY3JLUm3ljNG39kYCt8=; b=ozNrS/KaJiAyBj rsbnI7Tq0C6jG2d59lfOuXhVdbyIdj3wJcvI3+iXrDIHglkVroeV1oaCek3u8kiNaa2cxIjSDwq1v pehu1e63MAvEkrGN0smBpS50XeOaPPc8FJ/T9CESvAm0Xe85PogqorMcSGG+ATLzslKD7vofS79+3 mHyE9OPMpiOQ2+4f65hyzhnrGgzsSOWUS5DQmzoYKvSgIQChqNhB+c4v1TS2m+sa7YKi2vl77HMRg zpm9cBeIIoQ1E2GFxRuoQV3mUFgRbLcePYhwTX7bbenXBVhq3fuRcKexrgMgI4ZayEXQP8PM890lf lsPLfh5opUDl53ENHMRw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cro3Z-0002ip-VA; Sat, 25 Mar 2017 15:56:45 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cro3W-0002hn-GA; Sat, 25 Mar 2017 15:56:44 +0000 Received: by mail-wr0-x242.google.com with SMTP id y90so2500042wrb.1; Sat, 25 Mar 2017 08:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=brDMxCGuE20VetfTB3FiVkgCcn7uLb/IxmdiUmt2VNA=; b=OI8XXEUssjMYmawYINxMI79T5GIobtJsrSGwKtnK6ppGq7XJXyGjfSP3hkjdwDduSK 55pBEI6C0GQdSJwv1rTl7PdqntZVH0tAC4fhKiy8J4ajCmgxKH5bfTwHzcZ4VLFqRRKi MHGKO9jlaJItn9TYfn+qFtS6YfzvbMamYuxhdTHaonZPlW7Pf80DHkTkFmsUOUHGE7xk aQzKMsHkXrTJsfWr4Z8e7mwBu7JSsBepgiLaXrpEJFRwiPX/4Ga/Koo7sknDhnLoku6e eI2CBSLMftnQUy+ToAsLmQBlxYLscXso2FPheD1G41foKujdiXKCdoYvnaM2HiNW7iUh kVTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=brDMxCGuE20VetfTB3FiVkgCcn7uLb/IxmdiUmt2VNA=; b=M0p0983QedXKvnm13f79Km4SYlKmlhb8PWITwH/TLXgoIU5MrFMc44ohHzVUQFHuCQ cf480zawE7bo6Jp86auiWuh5V0ALZ5/WsOxauDSk8DVUnv+PGuDgQg304QkdUtWvkc9M s71hQ4GirW+P4Puli10+pRxlQsmxaI+KuLb1KlnI5JwhnA+9+Mna180hawvXm+ASOg/J PWmZtYOm3OuzsdxiUYw0jfBLMSVUeXWWmUNUYdBFAfiQOvpEQJc9jipQLQRlWuKFOq03 fCDGQ/Yze5NhyiBNjSw1TMKzjlGlVlQDz4dQorpatsN0qtCfPS4+gw1w1caRsuB9H5WB TkcQ== X-Gm-Message-State: AFeK/H2iUlvmGBBzy9cNL7D5KhK4GWHn2BKThYp2sv7KHxxoCt29wiJup0ItddTnpAe3yg== X-Received: by 10.223.152.237 with SMTP id w100mr3280509wrb.72.1490457379875; Sat, 25 Mar 2017 08:56:19 -0700 (PDT) Received: from belen-VirtualBox (146.red-83-59-253.dynamicip.rima-tde.net. [83.59.253.146]) by smtp.gmail.com with ESMTPSA id e129sm7013084wma.13.2017.03.25.08.56.18 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Mar 2017 08:56:19 -0700 (PDT) Date: Sat, 25 Mar 2017 16:56:18 +0100 From: Belen Sarabia <belensarabia@gmail.com> To: Jassi Brar <jassisinghbrar@gmail.com>, Heiko Stuebner <heiko@sntech.de> Subject: [PATCH] mailbox: rockchip: Delete redundant return value check of platform_get_resource() Message-ID: <20170325155618.GA2806@belen-VirtualBox> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170325_085642_719335_8BA614E5 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mailbox/rockchip-mailbox.c b/drivers/mailbox/rockchip-mailbox.c index d702a20..4dae133 100644 --- a/drivers/mailbox/rockchip-mailbox.c +++ b/drivers/mailbox/rockchip-mailbox.c @@ -205,9 +205,6 @@ static int rockchip_mbox_probe(struct platform_device *pdev) mb->mbox.txdone_irq = true; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -ENODEV; - mb->mbox_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(mb->mbox_base)) return PTR_ERR(mb->mbox_base);
Delete redundant error handling on the result to platform_get_resource() when the value is passed to devm_ioremap_resource(). Signed-off-by: Belen Sarabia <belensarabia@gmail.com> --- drivers/mailbox/rockchip-mailbox.c | 3 --- 1 file changed, 3 deletions(-)