Re: [PATCH] drivers/mtd/devices/spear_smi.c: failure test for nullrather than negative integer

From: Artem Bityutskiy
Date: Fri Aug 17 2012 - 05:59:05 EST


On Wed, 2012-07-11 at 10:58 +0200, Julia Lawall wrote:
> From: Julia Lawall <Julia.Lawall@xxxxxxx>
>
> dev_get_platdata returns a pointer, so the failure value would be NULL
> rather than a negative integer.
>
> The semantic match that finds this problem is: (http://coccinelle.lip6.fr/)

Pushed to l2-mtd.git, thanks!

--
Best Regards,
Artem Bityutskiy

Attachment: signature.asc
Description: This is a digitally signed message part