From patchwork Wed Aug 14 11:08:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 19104 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7CD6C2390D for ; Wed, 14 Aug 2013 11:25:12 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 9sf1856264qea.2 for ; Wed, 14 Aug 2013 04:25:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=O0hNqv3vantKTuoC7Mw28DP6RoJZ19j7u9bNvv7A9gM=; b=eNJzJ0Ld9pw192J68pUl6Qf1RW46EQ5XbbQVNSCljMhP6c7/K3WpltJBRYOlCFQUtw J85gyzOtMgX07KGqDUSvVpOmgkOgzYJKlBIA8Pz1lJQXh/oEz04w9aLN40Eot/3g6tws fxpT30jyS03XY/sI5NDt7qDiq/KHGpPA33+9kvxorf4GXiljKZY5bf0daZs7vD/+Rclj jS1VXmw5/VsdUAEN3hE7GOTYQNxWHegfy5i4tcRtNC8GSTC7pc9MXCCAlKH8/z3+1X5q +Lo1j5dDN1wt0qXNg3Zg5/YBXqH43ChU6WdnSCZfmXGSlD+pkwMafL1pn1OsPyqYvBps bq+g== X-Received: by 10.58.67.7 with SMTP id j7mr1756524vet.37.1376479512240; Wed, 14 Aug 2013 04:25:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.74 with SMTP id g10ls3144654qey.60.gmail; Wed, 14 Aug 2013 04:25:12 -0700 (PDT) X-Received: by 10.58.118.70 with SMTP id kk6mr9141692veb.1.1376479512158; Wed, 14 Aug 2013 04:25:12 -0700 (PDT) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id ud10si10881743vcb.141.2013.08.14.04.25.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 04:25:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.54 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.54; Received: by mail-vb0-f54.google.com with SMTP id q14so7416310vbe.41 for ; Wed, 14 Aug 2013 04:25:12 -0700 (PDT) X-Gm-Message-State: ALoCoQl8nKOY28+Q/lTlHr3e1U4MpOf2upM/X9hQgp9/Ebdxjwjl4npGey/ZWa751lR0Db7WKhCJ X-Received: by 10.52.92.73 with SMTP id ck9mr67771vdb.34.1376479512076; Wed, 14 Aug 2013 04:25:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp207326vcz; Wed, 14 Aug 2013 04:25:11 -0700 (PDT) X-Received: by 10.66.4.6 with SMTP id g6mr9223279pag.96.1376479511139; Wed, 14 Aug 2013 04:25:11 -0700 (PDT) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx.google.com with ESMTPS id tl4si29045417pac.79.2013.08.14.04.25.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 04:25:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.53 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.53; Received: by mail-pb0-f53.google.com with SMTP id up15so9166138pbc.40 for ; Wed, 14 Aug 2013 04:25:10 -0700 (PDT) X-Received: by 10.67.2.74 with SMTP id bm10mr9303481pad.109.1376479510597; Wed, 14 Aug 2013 04:25:10 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id xs1sm4552370pac.7.2013.08.14.04.25.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 04:25:09 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Cc: inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/4] drm/exynos: Remove redundant NULL check in exynos_drm_buf Date: Wed, 14 Aug 2013 16:38:00 +0530 Message-Id: <1376478483-13512-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.54 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , kfree handles null pointers. Hence this check is not necessary. Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_drm_buf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c index b8ac06d..7f489e7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_buf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c @@ -161,11 +161,6 @@ struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev, void exynos_drm_fini_buf(struct drm_device *dev, struct exynos_drm_gem_buf *buffer) { - if (!buffer) { - DRM_DEBUG_KMS("buffer is null.\n"); - return; - } - kfree(buffer); buffer = NULL; }