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

- From: d binderman \<hidden\>
- Date: 2010-02-21 10:19:38 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2010/02/13460183
- Thread: https://ratatoskr.run/linux-fbdev/2010/02/13460183/t.md

```text

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/
```

## Attachments

- [bug34.patch](https://ratatoskr.run/linux-fbdev/2010/02/13460183/attachment/0) (text/x-patch, 1256 bytes)
