From patchwork Sat Dec 10 20:51:23 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: 9469505 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 94C3460234 for ; Sat, 10 Dec 2016 20:51:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 859E428417 for ; Sat, 10 Dec 2016 20:51:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A735284E6; Sat, 10 Dec 2016 20:51:53 +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 391DA28417 for ; Sat, 10 Dec 2016 20:51:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752330AbcLJUve (ORCPT ); Sat, 10 Dec 2016 15:51:34 -0500 Received: from mout.web.de ([212.227.15.14]:52287 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbcLJUvc (ORCPT ); Sat, 10 Dec 2016 15:51:32 -0500 Received: from [192.168.1.2] ([77.181.156.58]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MQO44-1c3bn63iBg-00TpjD; Sat, 10 Dec 2016 21:51:25 +0100 Subject: [PATCH 3/4] [media] bt8xx: Delete unnecessary variable initialisations in ca_send_message() To: linux-media@vger.kernel.org, Alexey Khoroshilov , Hans Verkuil , Mauro Carvalho Chehab References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: Date: Sat, 10 Dec 2016 21:51:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:m1n8JSggpW2TaPClW9rtwrqsiSJ48KgUvdI83L5QzZBD+dftA6c rfOrbuanmV9miLOylj8aoHrWlZG3JrS6GSwvb1RMHW9P4KgHcZQTOVkvfsR19E/9Qqs6SOw rOXusaJsW6/nm7p3DF/nWsleI1U/XxALZUVD8hpK5M4smU+urDmteMO+ax/+62r4Cwf55I5 LVjxYzb/JRANWDmgs6KUQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:bKwcAqsdysw=:8jsn+YWO7E247L/B4Swd+s WmZF8lG1gPOTKdWhwwgnBWvsiff3BOvNmZWf5NyylSp0BaNB34AFDxDWWyGecedjTc/YUDjd2 GcR/Id46WTVVao3dGinITQF0GHfLqKj61YxpiblUgelxuv36GU8xPm+7RhzBVez1GcIaNretn HFxVovsSojcuWT9XRBD6tRiHijV6wsTnAMxsZas0Obw27/xgVIrRU98hcIp06xNWBCxtqS510 gnvsy58UKpb3ohlkSKYZ58QbZXTkrZ0z6jsvQU3iL0Cqa9IeTfzVx3X41gSZJWfIDoRysMe/X wxcTYytzcnC7UVh5sZ3Q983LRR9/tTdGJR00uLgj3YPk0atbe3/rAmCC8Ipia9NBCwm+ImeqD +P6A/gOsTVO6HIuA6hBq6+22cNM0/0uuPporXIZsIQepE9+Mvz41yj36CnEafYI6PWamzNSee 5HX5UTwrhhtQARz118bh84cm/fS9eAa3vTTXp2hPqeyGzqZr1VWRZEKmIOAyc40K/f3XW0SNI fCuyWHaSTZs3ztbtIFoiXy8sLNHnWksvglowCjixstQts35AAo+uhH8P58ZeROLkhbhuB8TEe sfCwXb6VO8zkjkIxGqoCuvS1//PChPigx+Z7KMawnFsqTV1dunmq+iE+18g0uhP70zN0C72pe BS+MnKp0g6+i/avlRuwqTwNE0c4O2QRfa612s1slIxwlqrkaYvXxeH63uUBbONrzayuHVoCVC xxfPETOTTFF82ka79ng2cuMHdy94ZGSOfcCm8NM35YvuZdIi+bR9VM5JvTkNtnf7+o9F1IeTK pMdcnXw 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: Sat, 10 Dec 2016 20:56:04 +0100 Two local variables 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/pci/bt8xx/dst_ca.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/bt8xx/dst_ca.c b/drivers/media/pci/bt8xx/dst_ca.c index 54e656ddd588..04d06c564602 100644 --- a/drivers/media/pci/bt8xx/dst_ca.c +++ b/drivers/media/pci/bt8xx/dst_ca.c @@ -475,9 +475,8 @@ static int dst_check_ca_pmt(struct dst_state *state, struct ca_msg *p_ca_message static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg) { - int i = 0; - - u32 command = 0; + int i; + u32 command; struct ca_msg *hw_buffer; int result = 0;