* [PATCH] gpu: drm: gma500: remove two more dead variable
@ 2017-05-22 20:30 Arnd Bergmann
2017-05-22 22:44 ` Gustavo A. R. Silva
2017-05-22 23:47 ` Patrik Jakobsson
0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2017-05-22 20:30 UTC (permalink / raw)
To: Patrik Jakobsson, David Airlie
Cc: Arnd Bergmann, Daniel Vetter, Gustavo A. R. Silva, dri-devel,
linux-kernel
The dead code removal left two unused variables:
drivers/gpu/drm/gma500/mdfld_tpo_vid.c: In function 'tpo_vid_get_config_mode':
drivers/gpu/drm/gma500/mdfld_tpo_vid.c:34:31: error: unused variable 'ti' [-Werror=unused-variable]
This removes them as well.
Fixes: 94d7fb4982d2 ("gpu: drm: gma500: remove dead code")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/gpu/drm/gma500/mdfld_tpo_vid.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/gma500/mdfld_tpo_vid.c b/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
index d40628e6810d..a9420bf9a419 100644
--- a/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
+++ b/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
@@ -30,8 +30,6 @@
static struct drm_display_mode *tpo_vid_get_config_mode(struct drm_device *dev)
{
struct drm_display_mode *mode;
- struct drm_psb_private *dev_priv = dev->dev_private;
- struct oaktrail_timing_info *ti = &dev_priv->gct_data.DTD;
mode = kzalloc(sizeof(*mode), GFP_KERNEL);
if (!mode)
--
2.9.0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] gpu: drm: gma500: remove two more dead variable
2017-05-22 20:30 [PATCH] gpu: drm: gma500: remove two more dead variable Arnd Bergmann
@ 2017-05-22 22:44 ` Gustavo A. R. Silva
2017-05-22 23:47 ` Patrik Jakobsson
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo A. R. Silva @ 2017-05-22 22:44 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Patrik Jakobsson, David Airlie, Daniel Vetter, dri-devel, linux-kernel
Hi Arnd,
Quoting Arnd Bergmann <arnd@arndb.de>:
> The dead code removal left two unused variables:
>
> drivers/gpu/drm/gma500/mdfld_tpo_vid.c: In function
> 'tpo_vid_get_config_mode':
> drivers/gpu/drm/gma500/mdfld_tpo_vid.c:34:31: error: unused variable
> 'ti' [-Werror=unused-variable]
>
> This removes them as well.
>
> Fixes: 94d7fb4982d2 ("gpu: drm: gma500: remove dead code")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/gpu/drm/gma500/mdfld_tpo_vid.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
> b/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
> index d40628e6810d..a9420bf9a419 100644
> --- a/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
> +++ b/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
> @@ -30,8 +30,6 @@
> static struct drm_display_mode *tpo_vid_get_config_mode(struct
> drm_device *dev)
> {
> struct drm_display_mode *mode;
> - struct drm_psb_private *dev_priv = dev->dev_private;
> - struct oaktrail_timing_info *ti = &dev_priv->gct_data.DTD;
>
> mode = kzalloc(sizeof(*mode), GFP_KERNEL);
> if (!mode)
> --
> 2.9.0
Thank you!
--
Gustavo A. R. Silva
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] gpu: drm: gma500: remove two more dead variable
2017-05-22 20:30 [PATCH] gpu: drm: gma500: remove two more dead variable Arnd Bergmann
2017-05-22 22:44 ` Gustavo A. R. Silva
@ 2017-05-22 23:47 ` Patrik Jakobsson
1 sibling, 0 replies; 3+ messages in thread
From: Patrik Jakobsson @ 2017-05-22 23:47 UTC (permalink / raw)
To: Arnd Bergmann
Cc: David Airlie, Daniel Vetter, Gustavo A. R. Silva, dri-devel,
linux-kernel
On Mon, May 22, 2017 at 10:30 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> The dead code removal left two unused variables:
>
> drivers/gpu/drm/gma500/mdfld_tpo_vid.c: In function 'tpo_vid_get_config_mode':
> drivers/gpu/drm/gma500/mdfld_tpo_vid.c:34:31: error: unused variable 'ti' [-Werror=unused-variable]
>
> This removes them as well.
>
> Fixes: 94d7fb4982d2 ("gpu: drm: gma500: remove dead code")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Thanks, I'll take this through drm-misc
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
> ---
> drivers/gpu/drm/gma500/mdfld_tpo_vid.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/gma500/mdfld_tpo_vid.c b/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
> index d40628e6810d..a9420bf9a419 100644
> --- a/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
> +++ b/drivers/gpu/drm/gma500/mdfld_tpo_vid.c
> @@ -30,8 +30,6 @@
> static struct drm_display_mode *tpo_vid_get_config_mode(struct drm_device *dev)
> {
> struct drm_display_mode *mode;
> - struct drm_psb_private *dev_priv = dev->dev_private;
> - struct oaktrail_timing_info *ti = &dev_priv->gct_data.DTD;
>
> mode = kzalloc(sizeof(*mode), GFP_KERNEL);
> if (!mode)
> --
> 2.9.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-22 23:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-22 20:30 [PATCH] gpu: drm: gma500: remove two more dead variable Arnd Bergmann
2017-05-22 22:44 ` Gustavo A. R. Silva
2017-05-22 23:47 ` Patrik Jakobsson
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®