drm/xen: Simplify fb_create
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 15 Nov 2019 09:21:18 +0000 (10:21 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Nov 2019 21:25:55 +0000 (22:25 +0100)
commit93adc0c2cb7270a5ed1deb7fb561428da971f323
tree786c3123a9a760e8164f430a61b72772673ec92d
parent931e691cc6297f29b952d7a85ca21cf30ed62bd8
drm/xen: Simplify fb_create

The current code is a pretty good wtf moment, since we drop the
reference before we use it. It's not a big deal, because a) we only
use the pointer, so doesn't blow up and the real reason b) fb->obj[0]
already holds a full reference for us.

Might as well take the real pointer ins't of complicated games that
baffle.

Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Cc: xen-devel@lists.xenproject.org
Link: https://patchwork.freedesktop.org/patch/msgid/20191115092120.4445-7-daniel.vetter@ffwll.ch
drivers/gpu/drm/xen/xen_drm_front_kms.c