From: Joonyoung Shim <jy0922.shim@samsung.com>
To: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>,
linux-samsung-soc@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 2/3] drm/exynos: remove superfluous error messages
Date: Tue, 07 Apr 2015 16:04:34 +0900 [thread overview]
Message-ID: <55238182.8030405@samsung.com> (raw)
In-Reply-To: <1428362092-29826-3-git-send-email-tjakobi@math.uni-bielefeld.de>
Hi,
On 04/07/2015 08:14 AM, Tobias Jakobi wrote:
> The messages are redundant since 'check_fb_gem_memory_type'
> already prints out exactly the same string when it fails.
>
> Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
> ---
> drivers/gpu/drm/exynos/exynos_drm_fb.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c
> index d346d1e..929cb03 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_fb.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c
> @@ -151,10 +151,8 @@ exynos_drm_framebuffer_init(struct drm_device *dev,
> exynos_gem_obj = to_exynos_gem_obj(obj);
>
> ret = check_fb_gem_memory_type(dev, exynos_gem_obj);
> - if (ret < 0) {
> - DRM_ERROR("cannot use this gem memory type for fb.\n");
> - return ERR_PTR(-EINVAL);
> - }
> + if (ret < 0)
> + return ERR_PTR(ret);
>
> exynos_fb = kzalloc(sizeof(*exynos_fb), GFP_KERNEL);
> if (!exynos_fb)
> @@ -250,10 +248,8 @@ exynos_user_fb_create(struct drm_device *dev, struct drm_file *file_priv,
> exynos_fb->exynos_gem_obj[i] = exynos_gem_obj;
>
> ret = check_fb_gem_memory_type(dev, exynos_gem_obj);
> - if (ret < 0) {
> - DRM_ERROR("cannot use this gem memory type for fb.\n");
> + if (ret < 0)
> goto err_unreference;
> - }
> }
>
> ret = drm_framebuffer_init(dev, &exynos_fb->fb, &exynos_drm_fb_funcs);
>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Thanks.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-04-07 7:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-06 23:14 drm/exynos: misc fixes Tobias Jakobi
2015-04-06 23:14 ` [PATCH v2 1/3] drm/exynos: fix typos in hdmi and mixer Tobias Jakobi
2015-04-07 7:03 ` Joonyoung Shim
2015-04-07 13:35 ` Inki Dae
2015-04-06 23:14 ` [PATCH v2 2/3] drm/exynos: remove superfluous error messages Tobias Jakobi
2015-04-07 7:04 ` Joonyoung Shim [this message]
2015-04-06 23:14 ` [PATCH v2 3/3] drm/exynos: mixer: add 2x scaling to mixer_graph_buffer Tobias Jakobi
2015-04-07 7:10 ` Joonyoung Shim
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=55238182.8030405@samsung.com \
--to=jy0922.shim@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=tjakobi@math.uni-bielefeld.de \
/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