From patchwork Wed Oct 12 14:42:31 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: 9373307 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 1E78B60839 for ; Wed, 12 Oct 2016 14:42:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F5D62924B for ; Wed, 12 Oct 2016 14:42:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0387229638; Wed, 12 Oct 2016 14:42:47 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D39132924B for ; Wed, 12 Oct 2016 14:42:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933681AbcJLOmn (ORCPT ); Wed, 12 Oct 2016 10:42:43 -0400 Received: from mout.web.de ([212.227.15.14]:65120 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933547AbcJLOml (ORCPT ); Wed, 12 Oct 2016 10:42:41 -0400 Received: from [192.168.1.2] ([78.49.9.22]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MC1RI-1blZJQ0vDM-008nq5; Wed, 12 Oct 2016 16:42:32 +0200 Subject: [PATCH 07/34] [media] DaVinci-VPBE: Delete an unnecessary variable initialisation in vpbe_initialize() To: linux-media@vger.kernel.org, Hans Verkuil , "Lad, Prabhakar" , Mauro Carvalho Chehab References: Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: Date: Wed, 12 Oct 2016 16:42:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:Xevk24kRCqdPHGA9+3S++Ikz8D+fcKBKJGisnb7FjAOUMftsCXQ x6CUnRvE7E3wpuWQgEBMQpQQCvqmT+NyHhe91jJHnslFeXN7MHq1uktVv/PbL8H4A3SYCfo aNzJIVu8iCKKmSGuKpJvkVc5TaEVCaWsZU7ttv4H7xHbYjq2V3q7Rs23yO5CluuQTBYhF4a lTNXvsnCKEAJRkc7AGefQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:AvPNvsXOUoY=:W/55TDZIJ7Wcqm0BUHkQhc 2YkzaB/lDhPAoFw9dzwcubL7j55c/E5KHS/MVBezWj/AZqS9VLn9a/ew9RuGl3j033K3KZOtA jT4NVqcGGXcyYjb1NouX65rHSQF7noI7Wy8fXHvaSUDMYPIW27XttFRx/C8E2WoXhaQPfsU73 WzJgCM4v15M3EbOqob3MhsJZ3eZXU0xwf2mh1w2gGY39c61AqPe59J+XaUEAgBq8XKDv/Biuy pzY77gaaraiy72OdLMBHB4Y3f5upErcZnEwu9LBleC1ZIg1F3s8b/BIQtav/QXuoEf3lCTey+ r9JRMhR+hik2pmEDej4QTUuAv02fyIvltASdzhw0tGwprYF9OukhCIjTvJAI+Bz3qJfwphyU3 La55YmapxF68VYlNCTDoFVNWDIaCam08A4wDP3BvTBo7vSH3x6XqcHLlcVQHcTl0IoaYMHA+E d47QAi76EBtlSKVF4egNdbhAtE5PW34pXm++gYVYR7vRWEMaaHCS2HvxA6uDH8aik1D8M+VvR PJGSHd9gRIQLsCWuTpeV1zpmwPu1OR8+8ubIPw4UwXpvaGR6Y2KmJUpXn++W/RRYM6PVbRHLO jSANzpbk6AG76RcbDaLJkU1LtjDxN/8Xl+4X66yiVi80bJ1ZTgYevaD20UlqTny46PNOar0yJ nFgJZO4sPIguRA8GKgiFvaqfuL4BZBvtqAN7aDWRYyrrXzCfMQ3tKCLFcRxlpkJs9Me81NoSs dYtMyxD3keIn1+YPn+XB7Hy+FsaALxOJEl0BBeNjOcVQVSHbUWfRKVFVtH40knR9NPYSXScqB 1r2Nfn6 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 12 Oct 2016 09:45:39 +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/media/platform/davinci/vpbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index afa8ff7..9fdd8c0 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c @@ -597,7 +597,7 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) struct osd_state *osd_device; struct i2c_adapter *i2c_adap; int num_encoders; - int ret = 0; + int ret; int err; int i;