[PATCH v2] video/saa7164: Fix sparse warning: Using plain integer as NULL pointer

2011-01-30 Thread Peter Huewe
From: Peter Huewe peterhu...@gmx.de This patch fixes the warning Using plain integer as NULL pointer, generated by sparse, by replacing if(var == 0) with if (!var) after an allocation and all other offending 0s with NULL. KernelVersion: linus' tree-1f0324c Signed-off-by: Peter

Re: [PATCH v2] video/saa7164: Fix sparse warning: Using plain integer as NULL pointer

2011-01-30 Thread Devin Heitmueller
On Sun, Jan 30, 2011 at 2:33 PM, Peter Huewe peterhu...@gmx.de wrote: From: Peter Huewe peterhu...@gmx.de This patch fixes the warning Using plain integer as NULL pointer, generated by sparse, by replacing        if(var == 0) with        if (!var) after an allocation and all other