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>
This commit is contained in:
parent
be25ed9c5c
commit
c5c07550d4
@ -195,10 +195,8 @@ via_free_sg_info(struct pci_dev *pdev, drm_via_sg_info_t *vsg)
|
|||||||
default:
|
default:
|
||||||
vsg->state = dr_via_sg_init;
|
vsg->state = dr_via_sg_init;
|
||||||
}
|
}
|
||||||
if (vsg->bounce_buffer) {
|
vfree(vsg->bounce_buffer);
|
||||||
vfree(vsg->bounce_buffer);
|
vsg->bounce_buffer = NULL;
|
||||||
vsg->bounce_buffer = NULL;
|
|
||||||
}
|
|
||||||
vsg->free_on_sequence = 0;
|
vsg->free_on_sequence = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user