Re: Clang Analyzer was Re: [PATCH 3/7 v2] staging/ozwpan: Fix NULL vs zero in ozeltbuf.c (sparse warning)

2013-02-15 Thread Peter Hüwe
Am Freitag, 15. Februar 2013, 17:11:02 schrieb Dan Carpenter: > Are you using this version of clang?: > > http://git.linuxfoundation.org/llvmlinux.git/ > > regards, > dan carpenter Hi, nope - plain vanilla llvm/clang, but I use some of the kernel patches from there: http://git.linuxfoundation.

Re: Clang Analyzer was Re: [PATCH 3/7 v2] staging/ozwpan: Fix NULL vs zero in ozeltbuf.c (sparse warning)

2013-02-15 Thread Dan Carpenter
Are you using this version of clang?: http://git.linuxfoundation.org/llvmlinux.git/ regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info

Re: [PATCH 3/7 v2] staging/ozwpan: Fix NULL vs zero in ozeltbuf.c (sparse warning)

2013-02-15 Thread Dan Carpenter
On Fri, Feb 15, 2013 at 03:22:24PM +0100, Peter Huewe wrote: > 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

[PATCH 3/7 v2] staging/ozwpan: Fix NULL vs zero in ozeltbuf.c (sparse warning)

2013-02-15 Thread Peter Huewe
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 --- drivers/staging/ozw