diff options
author | Matt Turner <[email protected]> | 2014-09-21 21:13:33 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-12-08 17:02:19 -0800 |
commit | 9019e5e19532fe214fc6e45b9ee1f60bbe332456 (patch) | |
tree | c382866b78653aea157f085c9cdb8bd3695798e8 /src/gallium/state_trackers/hgl | |
parent | cae7a2a0319e31eef0975edafc730efd3bd2c8d4 (diff) |
Remove useless checks for NULL before freeing
See commits 5067506e and b6109de3 for the Coccinelle script.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/hgl')
-rw-r--r-- | src/gallium/state_trackers/hgl/hgl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/hgl/hgl.c b/src/gallium/state_trackers/hgl/hgl.c index ce2ffb1d418..4d7c479e616 100644 --- a/src/gallium/state_trackers/hgl/hgl.c +++ b/src/gallium/state_trackers/hgl/hgl.c @@ -214,8 +214,7 @@ hgl_destroy_st_manager(struct st_manager *manager) { CALLED(); - if (manager) - FREE(manager); + FREE(manager); } @@ -313,6 +312,5 @@ hgl_destroy_st_visual(struct st_visual* visual) { CALLED(); - if (visual) - FREE(visual); + FREE(visual); } |