Re: arch/powerpc/kernel/cacheinfo.c: Possible null pointer dereference

2011-02-13 Thread Michael Ellerman
On Sat, 2011-02-12 at 10:08 +, David Binderman wrote: > Hello there, > > I just tried out cppcheck-1.47 on the linux-2.6.38-rc4 source code. > > It said > > [arch/powerpc/kernel/cacheinfo.c:380]: (error) Possible null pointer > dereference: cache - otherwise it is redundant to check if cache

arch/powerpc/kernel/cacheinfo.c: Possible null pointer dereference

2011-02-12 Thread David Binderman
Hello there, I just tried out cppcheck-1.47 on the linux-2.6.38-rc4 source code. It said [arch/powerpc/kernel/cacheinfo.c:380]: (error) Possible null pointer dereference: cache - otherwise it is redundant to check if cache is null at line 382 The source code is WARN_ONCE(cache && cache-