From patchwork Mon Sep 18 14:00:13 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: 9956787 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 CEE9D60568 for ; Mon, 18 Sep 2017 14:00:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B63F928A1A for ; Mon, 18 Sep 2017 14:00:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB2DF28A85; Mon, 18 Sep 2017 14:00:57 +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 8DBD328A1A for ; Mon, 18 Sep 2017 14:00:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753004AbdIROAY (ORCPT ); Mon, 18 Sep 2017 10:00:24 -0400 Received: from mout.web.de ([212.227.17.12]:49823 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752894AbdIROAV (ORCPT ); Mon, 18 Sep 2017 10:00:21 -0400 Received: from [192.168.1.2] ([78.48.130.71]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MfHfy-1e4Jm80txq-00Orog; Mon, 18 Sep 2017 16:00:14 +0200 Subject: [PATCH 6/6] [media] go7007: Delete an unnecessary variable initialisation in go7007_snd_init() From: SF Markus Elfring To: linux-media@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Mon, 18 Sep 2017 16:00:13 +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:1DAy5RvWwSB722RdeVCDsy4QGwPiGYQPnB1iE3QePK67fGyhBUz O7h6H3Bk0d+HnWAjgOUFwTXrW4WjvB87DW9ZXF4G7vJlVsGxOw0HLyKhrQyYr6e4hzoHXR6 JtaxaLa10QWv3kYiDKW8owJVyjsH8AdiGjumKDuu+yqDOBSELys5IEXYt4TthHqgCZ3lcW/ fOu8DGbPZbUxSDqzucDKg== X-UI-Out-Filterresults: notjunk:1; V01:K0:6NvNV/58cxM=:UnNV5ynBUQk4yEF/QCycTB tcErKYJeDIa73QvkVcpiiZZRTug9fWre/GebHJ3mkG44hp45Jl+xbjadlytj5fo0Sp/KIB42i K55/mRRhiWROaEZE3xeiiGsErTbniG9IE5qdvkT0FNDnEvKEk8U1xIowRTlpbFCCb2mYRxr4J fy4rZnR1z3yQTYN8lMcNRX/6DpNEiwbfVo3G0xHUpFGpTqqG9HSzwb0WPhy0QW/ty39R7PWyZ wK1gOgcR04Owi7ybZq0/n6oT3dWcT26aOnge7APNC+yiMdzLKXXmIubhyIIECSA5b1sqGShHZ Q34swXFUyHy6UHDH6F9OfyHqZKmZGrorWSh1e9xdMKz82bwmELER5jCsgH4vTjBwq5Kx9IKJY +XjxG2SVY3EZfQwa1b8oVIBQPKh4JW8TEqO4UmTOPcO6PsgUGajukWCbAu40f2nA+xCE9QgQG gIisu6mPIDNS5oNS7zmP/nCSr8/kjDxZwd/fz75PQbT1BwijLi4+9hpQSzx1lRUPrnNBn2R+a scjpTMKzqEucR/Bs19JEOMg3VDXOkbj3aB/ruK7/gyxAvOTqs3tBuLy9RbqV+0kSt1SJNWpJF B5Ee2ZxA7iq8DAy4pm1W20AFiyXLZarvmHCOcYfNZFxKcbK7zc4TcdrgaWqhBsCd40U61x5d5 biHuhA9GZWYkUf9I/Vyk6NJgta1mO0xSmpP6KUU49T9hjeatMv3lBqzsKYYbASTlFbNPrLXKU Iyz1oOA2WtMpsu3CBKQXtrVNxNtc9hH0VH43JjDinlBr0AU7c7u0LgqUmlkoao1PfKZtKi2vg 8P2y0zNFTLOENgtUCdEmPWxzUoYow7tkMTsSFnAmNH02AXInfM= 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: Mon, 18 Sep 2017 14:35:43 +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/usb/go7007/snd-go7007.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/go7007/snd-go7007.c b/drivers/media/usb/go7007/snd-go7007.c index 7ae4d03ed3f7..27c09fd44657 100644 --- a/drivers/media/usb/go7007/snd-go7007.c +++ b/drivers/media/usb/go7007/snd-go7007.c @@ -227,7 +227,7 @@ int go7007_snd_init(struct go7007 *go) { static int dev; struct go7007_snd *gosnd; - int ret = 0; + int ret; if (dev >= SNDRV_CARDS) return -ENODEV;