From patchwork Thu Oct 13 16:32:08 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: 9375453 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 A162160487 for ; Thu, 13 Oct 2016 16:42:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 882DD2A16E for ; Thu, 13 Oct 2016 16:42:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B0212A170; Thu, 13 Oct 2016 16:42:56 +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 22C9B2A16E for ; Thu, 13 Oct 2016 16:42:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933324AbcJMQmw (ORCPT ); Thu, 13 Oct 2016 12:42:52 -0400 Received: from mout.web.de ([212.227.15.3]:57488 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933250AbcJMQmu (ORCPT ); Thu, 13 Oct 2016 12:42:50 -0400 Received: from [192.168.1.2] ([77.182.72.22]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0LzJyr-1aqKfw0ABV-014SMy; Thu, 13 Oct 2016 18:32:09 +0200 Subject: [PATCH 10/18] [media] RedRat3: Delete an unnecessary variable initialisation in redrat3_init_rc_dev() To: linux-media@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab , Sean Young , Wolfram Sang References: <566ABCD9.1060404@users.sourceforge.net> <81cef537-4ad0-3a74-8bde-94707dcd03f4@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <65fea9da-e1f5-ab90-65e4-9e5d78ee64d5@users.sourceforge.net> Date: Thu, 13 Oct 2016 18:32:08 +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: <81cef537-4ad0-3a74-8bde-94707dcd03f4@users.sourceforge.net> X-Provags-ID: V03:K0:3EtWlkLchRlo6CZSjAINsvZzU4cT9C1C+Vg4N0oLWzzDM1Mg/cj hirn2U6sLxyDOOEyKADQ+gF6tZ9tvQhpLw6DxWCebZTAqSh3Brpv5YtfYZMKcwmxVQMqpPz lu5A8u+ZxlGVLF/NXhLGv9O4tvZjBeMGwNg24sC6mFOQfHjl/S+rm9JqqGXK9WhTIve5kq8 ddc5O9g1+ZM98mbY/wwKQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:e+PesTbl7aA=:dwlhIVLxBUfs3SPs4huF4f wt5Wba9pWGLdfL9QQQ0re/DHQEFS3up3KGMNAXtQTBXsU2PV9lF5A+TN2hElGkwcuBC8WRX2O o/iv2Z69K5VsseUVVwYmVvJ5ysPhRxe/u80oiao8KIkVUpEzHDuJAJ/bH8og/vl3RMwrcygoE IZ+WLegVTKDukcuRcbmjJmqzFm5gmh3dsbn5vlty5o2zW9nHDvQZ5m2afNbv2aODtw7RUnjsi uU+O5rqmpmt9BjawaTbCruQ+f+bseXuiRA6DSks5aMUPrAGzMzt581zu/7rcW9b+FvlCchxe0 iZeT0IEKa/B9MqAeeUR2p//af70LFZxrXM8l3Q2L11d78iTc8dIMdb81cPtooG+wCTJeLLFqD Kv160UqXwr3Kh+Ujyx1GHFHXjnlcnErmlYZYWrgq/++nzuCjEnAecKR7iTEKRT04tf9lbYrAQ uKPzY8Emruf+h+oboMK8siBczdFansXqNbXc/E4CM2S3+WHCzkr6biFq053fq75vvlVga4TfJ SGstGuo3ojqZ/JcWsoo53hbOUXOkv7mw/M2Z8MkFAQ7lkPSEsa7zoz3McirtySiF82AyguopD XM5UX3b1QEe8rLYdYqqXirJW8oGYKZ1ordeMCaxMpaRYV1/ZjaQsaW7QRs52Qy8QO+m7Xvafx LaSZOAJagax0eidFfvZaXvCGuWi39ij7VZIpT/C0bk5EKohGuDisCksVPX2bLciYAE4LA9MaH Fixa1iapxoe4FN5CJHhL7AaPWSTu0uXoacsmv0oil+uyo5HLcOqca1YsoyjlF4JbtY7kjgun0 hQ/ttNP 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: Thu, 13 Oct 2016 14:17:43 +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/rc/redrat3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index f85117b..c43f43b 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c @@ -856,7 +856,7 @@ static struct rc_dev *redrat3_init_rc_dev(struct redrat3_dev *rr3) { struct device *dev = rr3->dev; struct rc_dev *rc; - int ret = -ENODEV; + int ret; u16 prod = le16_to_cpu(rr3->udev->descriptor.idProduct); rc = rc_allocate_device();