[PATCH RESEND] mtd: denali: fix error handling for devm_ioremap_nocache()

Artem Bityutskiy dedekind1 at gmail.com
Wed May 29 08:42:49 EDT 2013


On Fri, 2013-05-03 at 00:37 -0400, Xi Wang wrote:
> It is incorrect to use `!res' for error handling since `res' must be
> non-null.  Use the return value `ptr' instead.
> 
> Signed-off-by: Xi Wang <xi.wang at gmail.com>
> ---

This is already fixed upstream:

commit 6c67050ab108bcce2576fa1d7a0557eb0376520a
Author: Sachin Kamat <sachin.kamat at linaro.org>
Date:   Mon Mar 18 15:11:11 2013 +0530

    mtd: denali_dt: Fix incorrect error check
    
    The return value of devm_ioremap_nocache should be checked here
instead
    of res.
    
    Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list