All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
To: linux-samsung-soc@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org, emil.l.velikov@gmail.com,
	jy0922.shim@samsung.com, gustavo.padovan@collabora.co.uk,
	inki.dae@samsung.com,
	Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Subject: [PATCH v4 9/9] exynos/fimg2d: simplify g2d_fini()
Date: Wed, 13 May 2015 19:34:53 +0200	[thread overview]
Message-ID: <1431538493-11431-10-git-send-email-tjakobi@math.uni-bielefeld.de> (raw)
In-Reply-To: <1431538493-11431-1-git-send-email-tjakobi@math.uni-bielefeld.de>

free()ing a nullptr is a noop, so remove the check.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
---
 exynos/exynos_fimg2d.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c
index 9bf2aa9..8527dde 100644
--- a/exynos/exynos_fimg2d.c
+++ b/exynos/exynos_fimg2d.c
@@ -261,8 +261,7 @@ struct g2d_context *g2d_init(int fd)
 
 void g2d_fini(struct g2d_context *ctx)
 {
-	if (ctx)
-		free(ctx);
+	free(ctx);
 }
 
 /**
-- 
2.0.5

      parent reply	other threads:[~2015-05-13 17:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 17:34 [PATCH v4 0/9] drm/exynos: add async G2D execution to libdrm Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 1/9] exynos: Introduce exynos_handle_event() Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 2/9] tests/exynos: add fimg2d performance analysis Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 3/9] exynos/fimg2d: add g2d_config_event Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 4/9] exynos: fimg2d: add g2d_exec2 Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 5/9] tests/exynos: add fimg2d event test Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 6/9] exynos: fimg2d: fix return codes Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 7/9] tests/exynos: replace return by break Tobias Jakobi
2015-05-13 17:34 ` [PATCH v4 8/9] tests/exynos: use XRGB8888 for framebuffer Tobias Jakobi
2015-05-13 17:34 ` Tobias Jakobi [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=1431538493-11431-10-git-send-email-tjakobi@math.uni-bielefeld.de \
    --to=tjakobi@math.uni-bielefeld.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.l.velikov@gmail.com \
    --cc=gustavo.padovan@collabora.co.uk \
    --cc=inki.dae@samsung.com \
    --cc=jy0922.shim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    /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 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.