mtd: denali_dt: harmless case of testing the wrong variable
Subsystems (3)
PATCH 1/1 mtd: denali_dt: harmless case of testing the wrong variable
There is a warning message that can't be printed because we test the wrong variable.
Signed-off-by Dan Carpenter <[email protected]>
drivers/mtd/nand/denali_dt.c +1 -1
@@ -42,7 +42,7 @@ static void __iomem *request_and_map(struct device *dev, } ptr =devm_ioremap_nocache (dev, res->start,resource_size (res)); -if (!res) +if (!ptr)dev_err (dev,"ioremap_nocache of %s failed!" , res->name);return ptr;
A message that is not in the archive (sent off-list or not yet received): 20130401062151.GA5197-dZEljifmRObu9KfB+GxooP8+0UxHXcjY@public.gmane.org
Quoted 4 lines · Dan Carpenter
There is a warning message that can't be printed because we test the wrong variable.
Signed-off-by Dan Carpenter <[email protected]>
Thanks Dan, but there is already a similar fix for this in upstream:
commit 6c67050ab108bcce2576fa1d7a0557eb0376520a
Author: Sachin Kamat <[email protected]>
Signature · 2 lines
Best Regards, Artem Bityutskiy