[media] video/saa7164: Fix sparse warning: Using plain integer as NULL pointer
authorPeter Huewe <PeterHuewe@gmx.de>
Sun, 30 Jan 2011 19:33:01 +0000 (16:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:19 +0000 (20:32 -0300)
commit61ca1500c5ee04f2be34a4f58bb9baed0214b7a9
treeef71d383209c305352710cfac4a34fe068886af6
parent7ee9e64a3d7379fd443090880158374181f754cf
[media] video/saa7164: Fix sparse warning: Using plain integer as NULL pointer

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 Huewe <peterhuewe@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7164/saa7164-api.c
drivers/media/video/saa7164/saa7164-buffer.c
drivers/media/video/saa7164/saa7164-bus.c
drivers/media/video/saa7164/saa7164-cmd.c
drivers/media/video/saa7164/saa7164-core.c
drivers/media/video/saa7164/saa7164-dvb.c
drivers/media/video/saa7164/saa7164-encoder.c
drivers/media/video/saa7164/saa7164-fw.c
drivers/media/video/saa7164/saa7164-vbi.c