Re: [PATCH] hwspinlock/core: move the dereference below the NULL test

From: Ohad Ben-Cohen
Date: Mon Sep 10 2012 - 06:21:50 EST


On Mon, Sep 10, 2012 at 7:52 AM, Wei Yongjun <weiyj.lk@xxxxxxxxx> wrote:
>
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
>
> The dereference should be moved below the NULL test.
>
> spatch with a semantic match is used to found this.
> (http://coccinelle.lip6.fr/)
>
> Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/