projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be25ed9
)
drm/via: vfree() no need checking before calling it
author
Figo.zhang
<figo1802@gmail.com>
Sat, 6 Jun 2009 10:26:26 +0000
(18:26 +0800)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 12 Jun 2009 04:59:59 +0000
(14:59 +1000)
vfree() does it's own NULL checking, no need for explicit check before
calling it.
Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/via/via_dmablit.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/via/via_dmablit.c
b/drivers/gpu/drm/via/via_dmablit.c
index 409e00afdd0754f6eb60707810a262df43a75fe9..327380888b4a5f15880bbef8f17f93658d12ab89 100644
(file)
--- a/
drivers/gpu/drm/via/via_dmablit.c
+++ b/
drivers/gpu/drm/via/via_dmablit.c
@@
-195,10
+195,8
@@
via_free_sg_info(struct pci_dev *pdev, drm_via_sg_info_t *vsg)
default:
vsg->state = dr_via_sg_init;
}
- if (vsg->bounce_buffer) {
- vfree(vsg->bounce_buffer);
- vsg->bounce_buffer = NULL;
- }
+ vfree(vsg->bounce_buffer);
+ vsg->bounce_buffer = NULL;
vsg->free_on_sequence = 0;
}