From patchwork Wed Sep 21 16:50:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9343913 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D4A076077A for ; Wed, 21 Sep 2016 16:51:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D700028C67 for ; Wed, 21 Sep 2016 16:51:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAEA72A7F7; Wed, 21 Sep 2016 16:51:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7082028C67 for ; Wed, 21 Sep 2016 16:51:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ADEFD6E874; Wed, 21 Sep 2016 16:51:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id AEA366E874 for ; Wed, 21 Sep 2016 16:51:02 +0000 (UTC) Received: from [192.168.1.2] ([77.182.212.253]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0LlnMG-1bDPyz0en2-00ZNFY; Wed, 21 Sep 2016 18:50:57 +0200 Subject: [PATCH 09/14] GPU-DRM-OMAP: Delete an unnecessary variable initialisation in dmm_txn_commit() To: dri-devel@lists.freedesktop.org, David Airlie , Laurent Pinchart , Tomi Valkeinen References: <566ABCD9.1060404@users.sourceforge.net> <0ea38611-3d93-0ade-a1fb-f8cc2e0b8d61@users.sourceforge.net> From: SF Markus Elfring Message-ID: <52075f14-1299-d285-3fb4-a541d9f0183a@users.sourceforge.net> Date: Wed, 21 Sep 2016 18:50:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <0ea38611-3d93-0ade-a1fb-f8cc2e0b8d61@users.sourceforge.net> X-Provags-ID: V03:K0:ng0iFn+XoHEfw6gvjiHR216r7D8NfPsVpW442dCTIN1i84gsSFB SHU80dXYcp9Xt7uxnHiArsDQuLMXLDbEc9nzDkBJQ91/sQQKMgjdwzFviqcv1ryDSbxU/WV 25KA8MHwuCK4JCF37rXlbFLwA1IkjHQMpsG/WmdkDGMjd0BPGScpjUMy9+DEMBuJGrlbgOz ukcEnc+xAgQtVQLTzb8gQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:DK1LQZxSyIE=:kebBXlB22GOfIyNFfLVCjU +k7FDTndF924cIXd0KhMRlzoF+rkmEwyKg+epdUbMUnRLI37SZkTSwsYo3IZWkaqF8h7wAwzE +rvzaXByuQZvEo4rq22ZucAwBsHnPV/6H3TdDD1Wbs3OdprQrDlvw5qZmMVyCCBzq/0/djUo0 mLm0XQf39NgNVAm/1W56vIdIIMq3Hl/9/bXoyed0UAQl2qHD4P/ZnWDbbU/4bVNMB0Dgap4Gk Vf+6OExBSXD0nCV4YTXrq27meCWIw9mUWhWjJ6RAtOzLk8tx5Sx4w5jwrGAvGE/I5aiThx6kk 53hLOQy1fk/fo+L8VnIGf2o0YaWQDDL9r4DLMSmEQI6mMCc1qJaF6oySGzBLTOynQ/P+l+SiW mxJdy68p90JOyhh83+e9xJOeWC0DJWrZk4drKR9m1I+5bppVW1OcbQr2q2AbkjjnGJqALi/eY m56XbHX0Kadir3EyqRchAKppCUFRYY1xQNHMJWQikojDUzd0e800CWS/wj4YiSIzPedc0CTvW 6cacrSJ75YGo2bbGn83fsSsEL8CfwHhCfaSht/pfqMc/vkyOcyw9DKA9PJIbzxgv63ysx5prS QKflT3gakRyeY75WBVLQHA3Xf5htA+tmV4U0u0xZQ3n9pKi2KJAGlSh6ScST79pW/L9aXNy20 s9Zjkgna7obO61kGrKPbLC89D9vmBB0fasm2XVVhazIBZMMpfE5Z9KLBm83G9ehayqCcC48bP hbr8dpUvkYv940zpvjm6LkhARD77Miq6bmCkJOQPsvevk87ePsJp2PI8QHo9PiXEy0Gu5r9nZ s9MFnwj Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 21 Sep 2016 17:34:40 +0200 The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index c8ced158..c5c3793 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -262,7 +262,7 @@ static void dmm_txn_append(struct dmm_txn *txn, struct pat_area *area, */ static int dmm_txn_commit(struct dmm_txn *txn, bool wait) { - int ret = 0; + int ret; struct refill_engine *engine = txn->engine_handle; struct dmm *dmm = engine->dmm;