staging/ozwpan: Fix NULL vs zero in ozproto.c (sparse warning)
authorPeter Huewe <peterhuewe@gmx.de>
Fri, 15 Feb 2013 14:22:25 +0000 (15:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:25:11 +0000 (10:25 -0800)
commit41ebb8a1c5f1f567b9c30c9b50aace91387537f8
treef37838f673d6b8d8422e1fd8a836895a0d0d4a37
parent953b19013a0dd313490db9bc625609a6936c5c98
staging/ozwpan: Fix NULL vs zero in ozproto.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/ozproto.c