qxl: No need for NULL check before calling qxl_bo_unref()
qxl_bo_unref() is already performing a NULL check. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Link: http://patchwork.freedesktop.org/patch/msgid/20181120162004.22807-1-cfergeau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:

committed by
Gerd Hoffmann

부모
a071a8ff1f
커밋
76a57db4a8
@@ -247,8 +247,7 @@ void qxl_draw_opaque_fb(const struct qxl_fb_image *qxl_fb_image,
|
||||
qxl_release_fence_buffer_objects(release);
|
||||
|
||||
out_free_palette:
|
||||
if (palette_bo)
|
||||
qxl_bo_unref(&palette_bo);
|
||||
qxl_bo_unref(&palette_bo);
|
||||
out_free_image:
|
||||
qxl_image_free_objects(qdev, dimage);
|
||||
out_free_drawable:
|
||||
|
Reference in New Issue
Block a user