From: Michael Thayer <michael.thayer@oracle.com>
To: Hans de Goede <hdegoede@redhat.com>,
Paolo Cretaro <paolocretaro@gmail.com>,
gregkh@linuxfoundation.org
Cc: daniel@ffwll.ch, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: vboxvideo: remove unused variables
Date: Sun, 23 Jul 2017 12:16:09 +0200 [thread overview]
Message-ID: <5b033c2b-6d23-8c9f-b3e4-7ab253d905f6@oracle.com> (raw)
In-Reply-To: <e0cc6483-4fcb-b58b-5f6a-7a7e995b5271@redhat.com>
Hello,
22.07.2017 20:17, Hans de Goede wrote:
> Hi,
>
> On 22-07-17 12:55, Paolo Cretaro wrote:
>> Fix compiler warnings:
>> vbox_mode.c:57:15: warning: variable ‘crtc_id’ set but not used
>> vbox_mode.c:581:25: warning: variable ‘vbox_connector’ set but not used
>>
>> Signed-off-by: Paolo Cretaro <paolocretaro@gmail.com>
>
> Patch looks good to me:
>
> Acked-by: Hans de Goede <hdegoede@redhat.com>
This is more or less copied and pasted from my reply to Colin King's
patch on the 19th, but it applies equally here.
Looks good to me too. Not had time to actually apply it yet, but as
said, it looks completely sensible.
Regards
Michael
Acked-by: Michael Thayer <michael.thayer@oracle.com>
> Regards,
>
> Hans
>
>
>> ---
>> drivers/staging/vboxvideo/vbox_mode.c | 5 -----
>> 1 file changed, 5 deletions(-)
>>
>> diff --git a/drivers/staging/vboxvideo/vbox_mode.c
>> b/drivers/staging/vboxvideo/vbox_mode.c
>> index f2b85f3256fa..a7eea70a3804 100644
>> --- a/drivers/staging/vboxvideo/vbox_mode.c
>> +++ b/drivers/staging/vboxvideo/vbox_mode.c
>> @@ -54,14 +54,12 @@ static void vbox_do_modeset(struct drm_crtc *crtc,
>> struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
>> struct vbox_private *vbox;
>> int width, height, bpp, pitch;
>> - unsigned int crtc_id;
>> u16 flags;
>> s32 x_offset, y_offset;
>> vbox = crtc->dev->dev_private;
>> width = mode->hdisplay ? mode->hdisplay : 640;
>> height = mode->vdisplay ? mode->vdisplay : 480;
>> - crtc_id = vbox_crtc->crtc_id;
>> bpp = crtc->enabled ? CRTC_FB(crtc)->format->cpp[0] * 8 : 32;
>> pitch = crtc->enabled ? CRTC_FB(crtc)->pitches[0] : width * bpp
>> / 8;
>> x_offset = vbox->single_framebuffer ? crtc->x : vbox_crtc->x_hint;
>> @@ -578,9 +576,6 @@ static int vbox_mode_valid(struct drm_connector
>> *connector,
>> static void vbox_connector_destroy(struct drm_connector *connector)
>> {
>> - struct vbox_connector *vbox_connector;
>> -
>> - vbox_connector = to_vbox_connector(connector);
>> drm_connector_unregister(connector);
>> drm_connector_cleanup(connector);
>> kfree(connector);
>>
--
Michael Thayer | VirtualBox engineer
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | D-71384 Weinstadt
ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister
der Handelskammer Midden-Nederland, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher
prev parent reply other threads:[~2017-07-23 10:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-22 10:55 Paolo Cretaro
2017-07-22 18:17 ` Hans de Goede
2017-07-23 10:16 ` Michael Thayer [this message]
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=5b033c2b-6d23-8c9f-b3e4-7ab253d905f6@oracle.com \
--to=michael.thayer@oracle.com \
--cc=daniel@ffwll.ch \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paolocretaro@gmail.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®