From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
To: YueHaibing <yuehaibing@huawei.com>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kernel-janitors@vger.kernel.org"
<kernel-janitors@vger.kernel.org>
Subject: Re: [PATCH -next] drm/xen-front: Drop pointless static qualifier in fb_destroy()
Date: Fri, 1 Feb 2019 08:55:47 +0000 [thread overview]
Message-ID: <abc50111-8924-dbfa-9f5d-16f102f30cac@epam.com> (raw)
In-Reply-To: <4c371af3-8856-39a7-d06e-6b55749567e5@epam.com>
On 1/28/19 8:36 AM, Oleksandr Andrushchenko wrote:
> On 1/26/19 2:05 PM, YueHaibing wrote:
>> 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>
> Good catch, thank you!
> Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
If nobody objects I'll apply this to drm-misc-fixes next Monday
>> ---
>> drivers/gpu/drm/xen/xen_drm_front_kms.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/xen/xen_drm_front_kms.c
>> b/drivers/gpu/drm/xen/xen_drm_front_kms.c
>> index 860da05..c2955d3 100644
>> --- a/drivers/gpu/drm/xen/xen_drm_front_kms.c
>> +++ b/drivers/gpu/drm/xen/xen_drm_front_kms.c
>> @@ -54,7 +54,7 @@ static void fb_destroy(struct drm_framebuffer *fb)
>> 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;
>>
>>
>>
>>
>>
next prev parent reply other threads:[~2019-02-01 8:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-26 12:05 YueHaibing
2019-01-28 6:36 ` Oleksandr Andrushchenko
2019-02-01 8:55 ` Oleksandr Andrushchenko [this message]
2019-02-04 6:56 ` [Xen-devel] " Oleksandr Andrushchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abc50111-8924-dbfa-9f5d-16f102f30cac@epam.com \
--to=oleksandr_andrushchenko@epam.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xen-devel@lists.xen.org \
--cc=yuehaibing@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®