From patchwork Wed Aug 30 07:21:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9928801 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 11FD26022E for ; Wed, 30 Aug 2017 07:21:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04BAD27C0B for ; Wed, 30 Aug 2017 07:21:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDE3727E5A; Wed, 30 Aug 2017 07:21:27 +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=unavailable 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 B97B927C0B for ; Wed, 30 Aug 2017 07:21:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdH3HVO (ORCPT ); Wed, 30 Aug 2017 03:21:14 -0400 Received: from mout.web.de ([217.72.192.78]:51663 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751306AbdH3HVM (ORCPT ); Wed, 30 Aug 2017 03:21:12 -0400 Received: from [192.168.1.2] ([77.182.113.36]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MfHk6-1eAYht3SCQ-00OoIy; Wed, 30 Aug 2017 09:21:07 +0200 Subject: [PATCH 3/6] [media] cx24116: Delete an unnecessary variable initialisation in cx24116_writeregN() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Max Kellermann Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <7af2ff80-ee62-d2d1-77af-35f34976780b@users.sourceforge.net> Date: Wed, 30 Aug 2017 09:21:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:XNly0uJdAmw3ty2N6l1JQZVNMD4ala3PTn6Uob4ntoqAnDDSg9f Z9uUKFtRWyLAS1l4/HSWL7uh4p2RRaY2WbWcKOUXlA/PLfQ3VdH798VNVzbQzULOf/N9Gxx vWIOEi89qkBHZEYCz3J5NEEOa3m/sFyydjC6yTRMWKWtrhA8ELGZ/jymyZN7A0ELnWBxGAk bFWlns6kdY9Mb+8r8NUbw== X-UI-Out-Filterresults: notjunk:1; V01:K0:uDGtVBcK8E4=:QYo5J4DiPxxHu7syXlx+72 Ty2owdE7RzA8OO+MqUzeDVCURFCcB4MrBdrxmB/6FY67g8fsty4QP7DQBw2Q9jYYhG9lndLQO 9Aw6hSbnmANAa+etqxjWGOflT8rPhojm3WTleyLDLDT3zysebknQA/ztsvUcG8j0bvtGLVDfV 6FnpaugzQUxN3O71qtWml2ZcYQltq4l3KV8myAKFGGcbnLVKCpi58ShZQuRV2+R9a42IRMH6x C7jrsbuYMp91xFXUwCQLqx6nAYVSVFKsfNzCWFJDRx5aEfBHQ4ODqgkQepsVdj0bhRerDyg42 Zix7PhmpSWLYiJX9RdTqmNfMzSTQGod6bsuNtiYx5V58dRAYEB8sA2lvNmPPVbaXtDsZv+JXJ kSXOTZlwUwVRu5LPz+sXq7O6qmcUjL9XTxwdLKm/08esAA/HqTl9alt1NKbyZayvrdQGLuP+F jtuOCcYoT1BfX24TK7A00YaSthxZqHrXToveV5+IkktD87T1neRwvZow8elr1pJTU1EcSWwUn df8GnNzCxdNduGI402Ah+5u1nHHZeAu6dz4C7VxZvyLeqvlNiHIutgvHK/gymVV7h4me3DKdp r9Uau96rOIXOuuvPP+tG5aFdM4t1drw6aGUSIuo8PCLio/nY7WZKH8mKqIzOGtA/+Mh4D6JvB zdysZGdrIxiyHXLs+NfTaOMV4P5T0XBsCu1R4s0kIgw6rlSYi3UXhbIiewd8el8J/vM0N4Wbv T/5nVAaypNCeyrUUuIIRzBgjuvZZXDLwhYfjLgfbgvkLh3Gu7VRlz8Xq/tP+lng8DXPqdn9rD wXS61ILFhM/hQ7oE+8lzFDiOo1S15nyf+COpSzGejgULKtWQL8= 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, 30 Aug 2017 08:10:38 +0200 The variable "ret" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/dvb-frontends/cx24116.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/cx24116.c b/drivers/media/dvb-frontends/cx24116.c index 69c156443b50..54f09a5a5075 100644 --- a/drivers/media/dvb-frontends/cx24116.c +++ b/drivers/media/dvb-frontends/cx24116.c @@ -221,7 +221,7 @@ static int cx24116_writereg(struct cx24116_state *state, int reg, int data) static int cx24116_writeregN(struct cx24116_state *state, int reg, const u8 *data, u16 len) { - int ret = -EREMOTEIO; + int ret; struct i2c_msg msg; u8 *buf;