diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-06-06 18:26:26 +0800 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-12 14:59:59 +1000 |
commit | c5c07550d41abe86d109430e718f2007113031f8 (patch) | |
tree | 3bc0c4acf074669bed97b569afb3538bb734e23d /drivers/gpu/drm/via | |
parent | be25ed9c5cc06e1d17aa97e41daf88f0b46143e6 (diff) | |
download | op-kernel-dev-c5c07550d41abe86d109430e718f2007113031f8.zip op-kernel-dev-c5c07550d41abe86d109430e718f2007113031f8.tar.gz |
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 409e00a..3273808 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; } |