diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-06-06 12:26:26 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-12 06:59:59 +0200 |
commit | c5c07550d41abe86d109430e718f2007113031f8 (patch) | |
tree | 3bc0c4acf074669bed97b569afb3538bb734e23d /drivers/gpu/drm/via | |
parent | drm: Replace DRM_DEBUG with DRM_DEBUG_DRIVER in i915 driver (diff) | |
download | linux-c5c07550d41abe86d109430e718f2007113031f8.tar.xz linux-c5c07550d41abe86d109430e718f2007113031f8.zip |
drm/via: vfree() no need checking before calling it
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>
Diffstat (limited to 'drivers/gpu/drm/via')
-rw-r--r-- | drivers/gpu/drm/via/via_dmablit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/via/via_dmablit.c b/drivers/gpu/drm/via/via_dmablit.c index 409e00afdd07..327380888b4a 100644 --- 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; } |