[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b42b5119-55af-88b2-055b-ce5d6a25a8d8@users.sourceforge.net>
Date: Tue, 24 Oct 2017 19:35:23 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: dri-devel@...ts.freedesktop.org, linux-tegra@...r.kernel.org,
David Airlie <airlied@...ux.ie>,
Jonathan Hunter <jonathanh@...dia.com>,
Thierry Reding <thierry.reding@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 2/2] drm/tegra: Use an error code directly in
tegra_output_probe()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Tue, 24 Oct 2017 19:21:24 +0200
Return the code "-EPROBE_DEFER" directly in one if branch
without assigning it to the local variable "err" before.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/gpu/drm/tegra/output.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c
index 1e0915e213b4..a9b458f22de6 100644
--- a/drivers/gpu/drm/tegra/output.c
+++ b/drivers/gpu/drm/tegra/output.c
@@ -115,9 +115,8 @@ int tegra_output_probe(struct tegra_output *output)
if (ddc) {
output->ddc = of_find_i2c_adapter_by_node(ddc);
if (!output->ddc) {
- err = -EPROBE_DEFER;
of_node_put(ddc);
- return err;
+ return -EPROBE_DEFER;
}
of_node_put(ddc);
--
2.14.3
Powered by blists - more mailing lists