From patchwork Fri Jun 24 05:39:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9196657 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 355FE60754 for ; Fri, 24 Jun 2016 05:40:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 287E028494 for ; Fri, 24 Jun 2016 05:40:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D62F28495; Fri, 24 Jun 2016 05:40: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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 C761628494 for ; Fri, 24 Jun 2016 05:40:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbcFXFkh (ORCPT ); Fri, 24 Jun 2016 01:40:37 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35490 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbcFXFkX (ORCPT ); Fri, 24 Jun 2016 01:40:23 -0400 Received: by mail-wm0-f67.google.com with SMTP id a66so2181239wme.2 for ; Thu, 23 Jun 2016 22:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=Tlr12i2wq0OZRlwgOJkCCPXaQXtIWImjAYlpETbJgkg=; b=fXg+CDdPC+WuRYYnJN+O80EQHta9fnYI2iHnQC/DC66c7VAa2xoXgYZ6yLcVNoB101 EB/ZSP9MhdFKIwu0/XXJQjfjKqQSqDt+4F3ovoHYRBICS/t+RaqcpRlDQyquWUf0EoNY aovBbVsgNDVwkZgeCLGhff63E0gdNMLWqtL6pyC7rXgBBHVl9VkkFn+qU9ps5qK/RydF PQSpVfDat+5Qa8EcyiAfxbYhqNU+nccQRkFGl5U+cl67SNYe860euSUcJUmISkzwzrJN Bocj5Jclq9v1ae/OPBC7LK2dA22w/hgBsMx83awprNBJbFefhaR5Hze22X+gRfsSqIGc 2Czg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=Tlr12i2wq0OZRlwgOJkCCPXaQXtIWImjAYlpETbJgkg=; b=TU6OxRYHdWqevVYKLrV0OB48MYr9arcMjD1OvEzpnJmzwVMWr2QjpuzKoi3w2VzzJl MAnjjJ+E+FSWyCgIL3pHTOYZPm5ozXSYt5qtG2lGzUwY6zhtESlJlTcdo6SBgvAWVzur 52yxhdIVyEMx8XMNxTpRlO6bG4aojkncJDquBFttLWNZ6MXQSXxhCDopSdQ0jHpae71M n20W+5JnMwpkB5z/9b5Gw9F007h7n6UGVlstB0TFtGXcDFdSS+ZAHglrqapCjrRkr/WG xmdWXb9dzW+eOpRphzZjxJgZ08sGbgxovGvq2eVmQ111IcffMB8lUPDhyminyYupRJ7X VuPg== X-Gm-Message-State: ALyK8tLgTq7pxPbDlh89TUwVY+RwTVIn7K0h3QesHbasNFOz/52ZBQHqtVV94FFs3xX3rQ== X-Received: by 10.28.229.147 with SMTP id c141mr17259103wmh.5.1466746822534; Thu, 23 Jun 2016 22:40:22 -0700 (PDT) Received: from ?IPv6:2003:62:5f01:4400:1482:e189:e8da:8d18? (p200300625F0144001482E189E8DA8D18.dip0.t-ipconnect.de. [2003:62:5f01:4400:1482:e189:e8da:8d18]) by smtp.googlemail.com with ESMTPSA id bh7sm3341352wjb.22.2016.06.23.22.40.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 22:40:22 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH 5/9] media: rc: nuvoton: remove unneeded code in nvt_process_rx_ir_data To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: <6ade811b-bf54-eeef-e83b-4dead2296200@gmail.com> Date: Fri, 24 Jun 2016 07:39:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 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 The definition of rawir includes the initialization already. Signed-off-by: Heiner Kallweit --- drivers/media/rc/nuvoton-cir.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index 1d99f10..9d9717d 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -757,8 +757,6 @@ static void nvt_process_rx_ir_data(struct nvt_dev *nvt) nvt_dbg_verbose("Processing buffer of len %d", nvt->pkts); - init_ir_raw_event(&rawir); - for (i = 0; i < nvt->pkts; i++) { sample = nvt->buf[i];