staging/ozwpan: Fix NULL vs zero in ozhcd.c (sparse warning)
authorPeter Huewe <peterhuewe@gmx.de>
Fri, 15 Feb 2013 14:22:28 +0000 (15:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:25:11 +0000 (10:25 -0800)
commit7be7d6def3358736d479fa99c424e07e60d4de72
tree29dbc69d8ee41c24f7bb1e96efc5f5638036bbbf
parentba346a4367a824a2c6337d4031fc9a82397a2abd
staging/ozwpan: Fix NULL vs zero in ozhcd.c (sparse warning)

This patch fixes the warning "Using plain integer as NULL pointer",
generated by sparse, by replacing the offending 0s with NULL.

If the initialization with NULL was unnecessary (due to unconditional
assignment before first use) it was removed.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c