From patchwork Mon Dec 28 16:30:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 7926741 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A0B5BBEEE5 for ; Mon, 28 Dec 2015 16:30:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C76FB20251 for ; Mon, 28 Dec 2015 16:30:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 009AE2022D for ; Mon, 28 Dec 2015 16:30:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752693AbbL1Qab (ORCPT ); Mon, 28 Dec 2015 11:30:31 -0500 Received: from mout.web.de ([212.227.17.12]:58255 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751474AbbL1Qa3 (ORCPT ); Mon, 28 Dec 2015 11:30:29 -0500 Received: from [192.168.1.2] ([78.48.234.128]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0Lw0uH-1aCHME47On-017niF; Mon, 28 Dec 2015 17:30:20 +0100 Subject: [PATCH 1/2] [media] r820t: Delete an unnecessary variable initialisation in generic_set_freq() To: linux-media@vger.kernel.org, Mauro Carvalho Chehab References: <566ABCD9.1060404@users.sourceforge.net> <56816256.70304@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <56816395.6050707@users.sourceforge.net> Date: Mon, 28 Dec 2015 17:30:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56816256.70304@users.sourceforge.net> X-Provags-ID: V03:K0:ox3owYqKoIEG8bzWytW+MbjjSw6QZTGhyimk6O9VX4jWbkkJBwD EcirrZmGldFAO9zpZ4czIxkHCzTgbQET6uRLe1M/aTGwDP3NEEWLpeBBTb1pAlI7YXyGtIb YUHaPaQmJjV7EQ5hWol0kQuXfndjQhARzv8gopuBE8Ks3L1VXD/krECCBCGnOBvob1v0w/H TkPIzV7CcISQUWcgEtjOw== X-UI-Out-Filterresults: notjunk:1; V01:K0:q9ogOBsId2o=:KCrvO3Rq8M7CAXAqJmKaIn Zx0c11ESZYd9sulwy2b1o5EoarY00JR5+MH8e58CngUh4h7THvL+EpanGb3Vn5UXwiKqhxdNl q0DYmvv2JZ7r7DhoPHB2QcbmDHruqGlOHgM1MAx97LMMw32UPrLc9MkvfPzGwpQMKADltK2Dh JA0TPCRLKlQB+/0dK3ktyAoZhQS23+8By3A2vmbfofMfJpqq1GLC41/3EjPF94wKFCIiBSW2z FfcRm2mcv8XJzviZNmzhJrNgX4jozh1yFsaCTMjWXFud8Lu6M6UljInxKni+hGVh1gdnrLO4h wkJYlq4bDSddMxZUToOTkI2nQRyM2/ehzD6WakaiUYtcmZMCntCdv6n3F86DROCxwX5hhknmi LWZ5SnPlEqoNqECtPbziYb57itQ8JPG56hwCAWpYxkkh1Uk46xXi9xNjMpIRpyljR/SVQwIPC dg7Ms+bIVnxJDdTIMivkFlOrfK3DCqUnD3+NjYRnnyzhBTPxU5i2efdpacEuA1Q8fGBQFSfR/ ZDkosFGY+HRVs14Au5VyTWKtL2aZLCRfmUcmyuchnCInaxvT8Y3BIU8vv0xChzJa6kBD5S6Lw HOElO2He0FyZ1vVjzmQIZgsPLHWG9ByrO7P+7QqbMA+g0wKSr+HM8VL5VW9fIgSHndPX+zKsd tDKFP1LLEUS7vSadMt/itsX6LtR1KRbFZO58xvHj2FN53VJKJJ+svxL7O/b0Zv7czY8R6x1fj 1sOASpqwpa3KNLupJ7v9YweUSYTcpXCFG9fcjwtdz/oimsKz7PCisnaABlIcM/rzqKBZS2nCW sm8vDV1q7NpZr1+HlTaDBRyuEHlHA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 28 Dec 2015 16:36:44 +0100 The variable "rc" will be set to an appropriate value from a call of the r820t_set_tv_standard() function. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/tuners/r820t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index a7a8452..6ab35e3 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -1295,7 +1295,7 @@ static int generic_set_freq(struct dvb_frontend *fe, v4l2_std_id std, u32 delsys) { struct r820t_priv *priv = fe->tuner_priv; - int rc = -EINVAL; + int rc; u32 lo_freq; tuner_dbg("should set frequency to %d kHz, bw %d MHz\n",