]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/xen-front: Drop pointless static qualifier in fb_destroy()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 26 Jan 2019 12:05:38 +0000 (12:05 +0000)
committerOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Mon, 4 Feb 2019 06:31:57 +0000 (08:31 +0200)
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
drivers/gpu/drm/xen/xen_drm_front_kms.c

index 860da055c6bb2727b71caefeba2e4b7391955448..c2955d3753944aced832197824c9321dac8b41ec 100644 (file)
@@ -54,7 +54,7 @@ fb_create(struct drm_device *dev, struct drm_file *filp,
          const struct drm_mode_fb_cmd2 *mode_cmd)
 {
        struct xen_drm_front_drm_info *drm_info = dev->dev_private;
-       static struct drm_framebuffer *fb;
+       struct drm_framebuffer *fb;
        struct drm_gem_object *gem_obj;
        int ret;