Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933278AbcJMQgB (ORCPT ); Thu, 13 Oct 2016 12:36:01 -0400 Received: from mout.web.de ([212.227.15.4]:62962 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933242AbcJMQfy (ORCPT ); Thu, 13 Oct 2016 12:35:54 -0400 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> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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:qYSih5mEHfM=:Fr1jPPT4Ey0grrfexQ24wx zsRXkuLfs+KfdHKaW39Q42XzqhjgpuYHDaRww6DqAx3clBUKV09pjgA2/DrF1uFpwzBnKxRAH QcWk1AHm3lLNXAqV831WPmAs+momN4Gc5iE9s8ugtO0K0xtkYJDxSN72aYdQ25JISQpydqsA+ r69+dHEcCJr2h5JT0HVAWwJVbmwSdcdPRFF8s6DGOI6xeUkPHib47dQDEQQ0REJL97u4u/Et4 HTVWogMR5WB+xRF6JwIHmgnhDuQOhyWiy/fb7u0loAxUoZMFH7uvrOpsU7uLrer0vQHXwuJI5 c8+KC5PQ9JqjHlYKmiYxLND2n6sOoc6+MxTxReyKdoXy5+seH8of3NVVnGPeBaXnkYjAopNOY kZzCqKEiM8y2RB1ISK3cn4dUkN2MbOIIes+jyHsK2F9lf4HIpzwKArLg+7fm/mCT2T7r4BoJc RQPpuO0DkWYwu6ML10EgRl7yt40o4JtRSHJOX10wfMTddp60zIXINqr5Ncm8++oRR6nIeC5GD Mc1TAu160lnN1jgaMVzhJCx/opBi1F4j0hFRaPG+ZSTmQq0ho2JyLvdqQAV363WESzEfk1uSc TPmE/N5WKBicHtzB3pSILtkAUWVOaiMTT/SFLgYnYCou1TN0b1QVjCtMveTsQJB6Cde4eBuH+ yxPBsKFP0OxW5JQT9cNeLpYkAsuzDIeAW5hpHI3DZz7C6MTCrm5HyJPmzT0QlVSF4/+PJN79o qC30cLdgyYr9/1l9G1ln793yt9+dR5zqb3E8nUdQ6WoCysv7Btcxx6TVGmEpk6s7OJQmB67Ki BNBVyKa Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 814 Lines: 26 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(); -- 2.10.1