Re: [PATCH] staging: dgnc: Remove explicit NULL comparison

From: Greg Kroah-Hartman
Date: Sun Oct 25 2015 - 04:34:23 EST


On Mon, Oct 19, 2015 at 11:14:35PM +0530, Muhammad Falak R Wani wrote:
> Rewrite explicit NULL comparison in its simpler form.
> <smpl>
> @NULL_REPLACE@
> expression e;
> @@
>
> -e == NULL
> + !e
> </smpl>
>
> Signed-off-by: Muhammad Falak R Wani <falakreyaz@xxxxxxxxx>
> ---
> drivers/staging/dgnc/dgnc_tty.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Someone else already did this before you :(
--
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/