drivers/video/uvesafb.c: 6 * redundant condition

Started by d binderman on Feb 21, 2010

open the first message on its own page

Message details and related content
Hello there,

I just ran the sourceforge tool cppcheck over the source code of the
new Linux kernel 2.6.33-rc8

It said

[./drivers/video/uvesafb.c:238]: (style) Redundant condition. It is safe to deallocate a NULL pointer
[./drivers/video/uvesafb.c:1321]: (style) Redundant condition. It is safe to deallocate a NULL pointer
[./drivers/video/uvesafb.c:1799]: (style) Redundant condition. It is safe to deallocate a NULL pointer
[./drivers/video/uvesafb.c:1822]: (style) Redundant condition. It is safe to deallocate a NULL pointer
[./drivers/video/uvesafb.c:1824]: (style) Redundant condition. It is safe to deallocate a NULL pointer
[./drivers/video/uvesafb.c:1826]: (style) Redundant condition. It is safe to deallocate a NULL pointer


I checked the source code and I agree with cppcheck.
Patch file attached.

Regards

David Binderman

 		 	   		  
_________________________________________________________________
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help