From: Dan Carpenter <dan.carpenter@oracle.com> To: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, Alexandre Bounine <alexandre.bounine@idt.com>, Andrew Morton <akpm@linux-foundation.org>, linuxppc-dev@lists.ozlabs.org, kernel-janitors@vger.kernel.org Subject: [patch] powerpc/fsl_rio: fix a missing error code Date: Thu, 04 Aug 2016 05:35:25 +0000 Message-ID: <20160804053525.GM775@mwanda> (raw) We should set the error code here. Otherwise static checkers complain. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index 984e816..68e7c0d 100644 --- a/arch/powerpc/sysdev/fsl_rio.c +++ b/arch/powerpc/sysdev/fsl_rio.c @@ -491,6 +491,7 @@ int fsl_rio_setup(struct platform_device *dev) rmu_node = of_parse_phandle(dev->dev.of_node, "fsl,srio-rmu-handle", 0); if (!rmu_node) { dev_err(&dev->dev, "No valid fsl,srio-rmu-handle property\n"); + rc = -ENOENT; goto err_rmu; } rc = of_address_to_resource(rmu_node, 0, &rmu_regs);
next reply index Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-08-04 5:35 Dan Carpenter [this message] 2016-08-04 20:16 ` Andrew Morton 2016-08-05 20:28 ` Dan Carpenter
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160804053525.GM775@mwanda \ --to=dan.carpenter@oracle.com \ --cc=akpm@linux-foundation.org \ --cc=alexandre.bounine@idt.com \ --cc=benh@kernel.crashing.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=mpe@ellerman.id.au \ --cc=paulus@samba.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Kernel-Janitors Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/kernel-janitors/0 kernel-janitors/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 kernel-janitors kernel-janitors/ https://lore.kernel.org/kernel-janitors \ kernel-janitors@vger.kernel.org public-inbox-index kernel-janitors Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.kernel-janitors AGPL code for this site: git clone https://public-inbox.org/public-inbox.git