public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] trivial/mtd: simplify return logic in do_map_probe()
@ 2012-02-13 15:12 Uwe Kleine-König
  2012-02-29  7:59 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2012-02-13 15:12 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-mtd, Jiri Kosina, kernel

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/mtd/chips/chipreg.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/chips/chipreg.c b/drivers/mtd/chips/chipreg.c
index da1f96f..0bbc61b 100644
--- a/drivers/mtd/chips/chipreg.c
+++ b/drivers/mtd/chips/chipreg.c
@@ -76,10 +76,7 @@ struct mtd_info *do_map_probe(const char *name, struct map_info *map)
 	*/
 	module_put(drv->module);
 
-	if (ret)
-		return ret;
-
-	return NULL;
+	return ret;
 }
 /*
  * Destroy an MTD device which was created for a map device.
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] trivial/mtd: simplify return logic in do_map_probe()
  2012-02-13 15:12 [PATCH] trivial/mtd: simplify return logic in do_map_probe() Uwe Kleine-König
@ 2012-02-29  7:59 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-02-29  7:59 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Jiri Kosina, linux-mtd, David Woodhouse, kernel

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

On Mon, 2012-02-13 at 16:12 +0100, Uwe Kleine-König wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Pushed to l2-mtd.git tree, thanks!

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-29  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 15:12 [PATCH] trivial/mtd: simplify return logic in do_map_probe() Uwe Kleine-König
2012-02-29  7:59 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox