From patchwork Wed Jan 28 22:47:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5737191 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 21DAF9F36E for ; Thu, 29 Jan 2015 03:48:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5BB6120221 for ; Thu, 29 Jan 2015 03:48:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 650EB20218 for ; Thu, 29 Jan 2015 03:48:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764671AbbA2Dr7 (ORCPT ); Wed, 28 Jan 2015 22:47:59 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:57701 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754804AbbA2BZR (ORCPT ); Wed, 28 Jan 2015 20:25:17 -0500 Received: by mail-wi0-f174.google.com with SMTP id n3so18276150wiv.1 for ; Wed, 28 Jan 2015 17:25:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tVtdXsP/u8yasXzrXh7uEWCov9Jy2jywI+/XGbBXeWQ=; b=JjQpwK1+7PxOIo8gPnAzwZaPZ8FLRXPmaJB1XwATP6+iAoroEfz6RxGEcMKKvQ+Jpd HYOSAyaaPGfHhK2WB3R5WrpB1MDmL+2Fo5ACMvbqshGenH/WFZ4vP0yqohYlWOGsVtyE PBQ7MRoveobHaJGf/rNKIBZzYNKyl8kjxGDYtzSWA6HoAa3BS4evoZGud/nlTW5k3Pkk JeorT3si3BySBDPtbaIWMNmK5uqcknDG04ZzDI+xLO8clsnh3F1ULel4dmDglhOYURZy VAylVvYx0vvkNFDsOZycWVb1wi4OP4ODXO7op3IoHCSlINJtcXcT2puGfJ9ra7FkINJp yumA== X-Gm-Message-State: ALoCoQk97qVKxrT/0Ey8Wjjje1upw92WYYcssllns1sKu/BtteDJmhOaV8Cj0zD4A+Mt54eQNu6+ X-Received: by 10.194.110.69 with SMTP id hy5mr12204924wjb.121.1422485064685; Wed, 28 Jan 2015 14:44:24 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id w3sm7944212wjf.3.2015.01.28.14.44.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 14:44:24 -0800 (PST) From: Rickard Strandqvist To: Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: Rickard Strandqvist , Hans Verkuil , Laurent Pinchart , "Lad, Prabhakar" , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: media: vino: vino: Removed variables that is never used Date: Wed, 28 Jan 2015 23:47:45 +0100 Message-Id: <1422485265-11231-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 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, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/media/vino/vino.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/media/vino/vino.c b/drivers/staging/media/vino/vino.c index 2c85357..f43c1ea 100644 --- a/drivers/staging/media/vino/vino.c +++ b/drivers/staging/media/vino/vino.c @@ -2375,7 +2375,6 @@ static irqreturn_t vino_interrupt(int irq, void *dev_id) next_4_desc = vino->a.next_4_desc; unsigned int line_count_2, page_index_2, - field_counter_2, start_desc_tbl_2, next_4_desc_2; #endif @@ -2421,7 +2420,6 @@ static irqreturn_t vino_interrupt(int irq, void *dev_id) #ifdef VINO_DEBUG_INT line_count_2 = vino->a.line_count; page_index_2 = vino->a.page_index; - field_counter_2 = vino->a.field_counter; start_desc_tbl_2 = vino->a.start_desc_tbl; next_4_desc_2 = vino->a.next_4_desc;