* [PATCH] drm/qxl: Remove useless drm_fb_get_bpp_depth() call
@ 2016-06-06 18:14 Laurent Pinchart
2016-06-07 16:50 ` Eric Engestrom
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2016-06-06 18:14 UTC (permalink / raw)
To: dri-devel; +Cc: Dave Airlie
The function has no side effect and its returned values are ignored,
don't call it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
drivers/gpu/drm/qxl/qxl_fb.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c
index 5ea57f6320b8..df2657051afd 100644
--- a/drivers/gpu/drm/qxl/qxl_fb.c
+++ b/drivers/gpu/drm/qxl/qxl_fb.c
@@ -131,10 +131,6 @@ static int qxlfb_create_pinned_object(struct qxl_fbdev *qfbdev,
int ret;
int aligned_size, size;
int height = mode_cmd->height;
- int bpp;
- int depth;
-
- drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth);
size = mode_cmd->pitches[0] * height;
aligned_size = ALIGN(size, PAGE_SIZE);
--
Regards,
Laurent Pinchart
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/qxl: Remove useless drm_fb_get_bpp_depth() call
2016-06-06 18:14 [PATCH] drm/qxl: Remove useless drm_fb_get_bpp_depth() call Laurent Pinchart
@ 2016-06-07 16:50 ` Eric Engestrom
2016-06-08 7:37 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Eric Engestrom @ 2016-06-07 16:50 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: Dave Airlie, dri-devel
On Mon, Jun 06, 2016 at 09:14:51PM +0300, Laurent Pinchart wrote:
> The function has no side effect and its returned values are ignored,
> don't call it.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
> ---
> drivers/gpu/drm/qxl/qxl_fb.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c
> index 5ea57f6320b8..df2657051afd 100644
> --- a/drivers/gpu/drm/qxl/qxl_fb.c
> +++ b/drivers/gpu/drm/qxl/qxl_fb.c
> @@ -131,10 +131,6 @@ static int qxlfb_create_pinned_object(struct qxl_fbdev *qfbdev,
> int ret;
> int aligned_size, size;
> int height = mode_cmd->height;
> - int bpp;
> - int depth;
> -
> - drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth);
>
> size = mode_cmd->pitches[0] * height;
> aligned_size = ALIGN(size, PAGE_SIZE);
> --
> Regards,
>
> Laurent Pinchart
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/qxl: Remove useless drm_fb_get_bpp_depth() call
2016-06-07 16:50 ` Eric Engestrom
@ 2016-06-08 7:37 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2016-06-08 7:37 UTC (permalink / raw)
To: Eric Engestrom; +Cc: Dave Airlie, Laurent Pinchart, dri-devel
On Tue, Jun 07, 2016 at 05:50:02PM +0100, Eric Engestrom wrote:
> On Mon, Jun 06, 2016 at 09:14:51PM +0300, Laurent Pinchart wrote:
> > The function has no side effect and its returned values are ignored,
> > don't call it.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Both of Laurent's patches applied, thanks.
-Daniel
>
> > ---
> > drivers/gpu/drm/qxl/qxl_fb.c | 4 ----
> > 1 file changed, 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c
> > index 5ea57f6320b8..df2657051afd 100644
> > --- a/drivers/gpu/drm/qxl/qxl_fb.c
> > +++ b/drivers/gpu/drm/qxl/qxl_fb.c
> > @@ -131,10 +131,6 @@ static int qxlfb_create_pinned_object(struct qxl_fbdev *qfbdev,
> > int ret;
> > int aligned_size, size;
> > int height = mode_cmd->height;
> > - int bpp;
> > - int depth;
> > -
> > - drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth);
> >
> > size = mode_cmd->pitches[0] * height;
> > aligned_size = ALIGN(size, PAGE_SIZE);
> > --
> > Regards,
> >
> > Laurent Pinchart
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-08 7:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-06 18:14 [PATCH] drm/qxl: Remove useless drm_fb_get_bpp_depth() call Laurent Pinchart
2016-06-07 16:50 ` Eric Engestrom
2016-06-08 7:37 ` Daniel Vetter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.