Skip to content

Commit 938010a

Browse files
YueHaibingOleksandr Andrushchenko
authored andcommitted
drm/xen-front: Drop pointless static qualifier in fb_destroy()
There is no need to have the 'struct drm_framebuffer *fb' variable static since new value always be assigned before use it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Link: https://patchwork.freedesktop.org/patch/msgid/1548504338-114487-1-git-send-email-yuehaibing@huawei.com
1 parent ba420af commit 938010a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xen/xen_drm_front_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fb_create(struct drm_device *dev, struct drm_file *filp,
5454
const struct drm_mode_fb_cmd2 *mode_cmd)
5555
{
5656
struct xen_drm_front_drm_info *drm_info = dev->dev_private;
57-
static struct drm_framebuffer *fb;
57+
struct drm_framebuffer *fb;
5858
struct drm_gem_object *gem_obj;
5959
int ret;
6060

0 commit comments

Comments
 (0)