From patchwork Mon Jul 1 04:03:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 2805021 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7A826BF4A1 for ; Mon, 1 Jul 2013 04:03:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F88920109 for ; Mon, 1 Jul 2013 04:03:44 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0192220108 for ; Mon, 1 Jul 2013 04:03:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5485E5ECC for ; Sun, 30 Jun 2013 21:03:42 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 74BB9E5C2F for ; Sun, 30 Jun 2013 21:03:29 -0700 (PDT) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MP8007ESOLQBUI0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 01 Jul 2013 13:03:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 1D.21.29708.F8FF0D15; Mon, 01 Jul 2013 13:03:27 +0900 (KST) X-AuditID: cbfee690-b7f6f6d00000740c-49-51d0ff8f39b8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 49.63.28381.F8FF0D15; Mon, 01 Jul 2013 13:03:27 +0900 (KST) Received: from localhost.localdomain ([10.90.8.56]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MP8008GZOLPL4K0@mmp2.samsung.com>; Mon, 01 Jul 2013 13:03:27 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH 1/2] drm/exynos: remove dead code in vidi_power_on Date: Mon, 01 Jul 2013 13:03:39 +0900 Message-id: <1372651419-16516-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRsSkRLf//4VAgxNzVCx6z51ksrjy9T2b xaT7E1gsXty7yGJxtukNu8WMyS/ZLPbunMzowO6x/dsDVo/73ceZPPq2rGIMYI7isklJzcks Sy3St0vgyjg84xJzwQe2ipMT9RoY77F2MXJySAiYSFz7PokNwhaTuHBvPZDNxSEksJRR4vux AywwRT8/XQFrEBKYzihxsiUHoqiZSeLUpo1MIAk2AR2J/Ut+gxWJCFhKPNj6mxnEZhaokDh0 6w9YjbCAk8SDDzvAhrIIqEq8P7IVLM4r4CbxcNUWRohlChIL7r0Fu0JC4DObxN33m1khGgQk vk0+BNTMAZSQldh0gBmiXlLi4IobLBMYBRcwMqxiFE0tSC4oTkovMtErTswtLs1L10vOz93E CAzR0/+eTdjBeO+A9SHGZKBxE5mlRJPzgSGeVxJvaGxmZGFqYmpsZG5pRpqwkjiveot1oJBA emJJanZqakFqUXxRaU5q8SFGJg5OqQZGAccLb7WfHgu89GPf1TkpPgfNOTt3bb7lmTtdcuX0 mzJ7X8alm35Z8Kx3of+hQz6sBhzZn+b9TOB9tmwzR1ivvJRZWWl8l5uz+QqxQ45rg1/v+dfE f/aAta29iqB+8kXjTd8LLMWE+lUkL1s+fx+bfOZXkf6cfW5cotc1TsyqfJkv2RbhZ9OmxFKc kWioxVxUnAgAHaY3GWcCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsVy+t9jQd3+/xcCDVY8kLboPXeSyeLK1/ds FpPuT2CxeHHvIovF2aY37BYzJr9ks9i7czKjA7vH9m8PWD3udx9n8ujbsooxgDmqgdEmIzUx JbVIITUvOT8lMy/dVsk7ON453tTMwFDX0NLCXEkhLzE31VbJxSdA1y0zB2i9kkJZYk4pUCgg sbhYSd8O04TQEDddC5jGCF3fkCC4HiMDNJCwhjHj8IxLzAUf2CpOTtRrYLzH2sXIySEhYCLx 89MVKFtM4sK99WwgtpDAdEaJky05XYxcQHYzk8SpTRuZQBJsAjoS+5f8BmsQEbCUeLD1NzOI zSxQIXHo1h+wGmEBJ4kHH3awgNgsAqoS749sBYvzCrhJPFy1hRFimYLEgntv2SYwci9gZFjF KJpakFxQnJSea6hXnJhbXJqXrpecn7uJERwBz6R2MK5ssDjEKMDBqMTDu2D6hUAh1sSy4src Q4wSHMxKIrzbP58PFOJNSaysSi3Kjy8qzUktPsSYDLR9IrOUaHI+MDrzSuINjU3MjCyNzA0t jIzNSRNWEuc90GodKCSQnliSmp2aWpBaBLOFiYNTqoEx+dzzhSpXj1dvTVU27I3oaqn6EWqo spxneVvSqqrGzSpaOTz1rccmdf1Teq87SdlwpbrOrMsvtjQrSx91ZVPQmCWa+HN26Inv1fcS J3KWzbhsqKYYsFRuswT3yzu81xZXm6y641t7YE85f7o6k++usiUXHOMtMiM59gcdPdvb09q4 a2J+5wIlluKMREMt5qLiRACTfGIwxAIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com, yj44.cho@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, TVD_SUBJ_WIPE_DEBT, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: YoungJun Cho The type of input parameter enable is bool, so it does not need to check whether true or false. Signed-off-by: YoungJun Cho Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index 784bbce..41cc74d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c @@ -413,9 +413,6 @@ static int vidi_power_on(struct vidi_context *ctx, bool enable) struct exynos_drm_subdrv *subdrv = &ctx->subdrv; struct device *dev = subdrv->dev; - if (enable != false && enable != true) - return -EINVAL; - if (enable) { ctx->suspended = false;