From patchwork Sun Jan 11 15:38:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5606371 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 443BD9F357 for ; Sun, 11 Jan 2015 15:35:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64D322063D for ; Sun, 11 Jan 2015 15:35:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8CD282053A for ; Sun, 11 Jan 2015 15:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751352AbbAKPfK (ORCPT ); Sun, 11 Jan 2015 10:35:10 -0500 Received: from mail-wg0-f43.google.com ([74.125.82.43]:32791 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751048AbbAKPfJ (ORCPT ); Sun, 11 Jan 2015 10:35:09 -0500 Received: by mail-wg0-f43.google.com with SMTP id k14so15477742wgh.2 for ; Sun, 11 Jan 2015 07:35:07 -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=D8owppJv+/rZ+snPnxeEYeIt3HAW5Fh4WZ9BTAwuMp0=; b=mI4qUyNEhlCkfAlsq4V36MZISkSLL/fjE1MkDVBbLycRkfSNtw+oQ4wzcLTkNc+Rhi 2GhAbA7NEYufFTwJwSxJ7RtA4rcDaCGBE/EJXYQYDs5qnjx0cukNZSN9F0FdQHCecGCU uaIsPBAk9IwnCrSoKbjMHB9T8QCoIPi8XYfds9b6yvxvXcMiFtLzqICQOFL2Y8T8QSrc hZUWJ81J1kvH5TfjP1GM6U/pZcESye+fxTcMx2xnE8Y6Qg+WSpka/Y/7XVtH3J6zD8wS 2NwvXo3Y+imH1j779aFl/KaZ3KEjYrMjLKMCJdllN58qtvHqYc4sO8H7GeiogLkyNSQw OssQ== X-Gm-Message-State: ALoCoQlNTh3lUvAXFG8E2cMlQeOz5ftNi9mMfGNuFA4gIyHpNQR90A/+C6ZZLlC5DIHfOAd2ssQr X-Received: by 10.194.2.75 with SMTP id 11mr51805258wjs.78.1420990507786; Sun, 11 Jan 2015 07:35:07 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id td6sm6542140wic.15.2015.01.11.07.35.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 07:35:07 -0800 (PST) From: Rickard Strandqvist To: Mike Isely , Mauro Carvalho Chehab Cc: Rickard Strandqvist , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [media] usb: pvrusb2: pvrusb2-hdw: Remove unused function Date: Sun, 11 Jan 2015 16:38:14 +0100 Message-Id: <1420990694-19925-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=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 Remove the function pvr2_hdw_cmd_powerdown() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 5 ----- drivers/media/usb/pvrusb2/pvrusb2-hdw.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c index 9623b62..972fa23 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c @@ -4035,11 +4035,6 @@ int pvr2_hdw_cmd_powerup(struct pvr2_hdw *hdw) } -int pvr2_hdw_cmd_powerdown(struct pvr2_hdw *hdw) -{ - return pvr2_issue_simple_cmd(hdw,FX2CMD_POWER_OFF); -} - int pvr2_hdw_cmd_decoder_reset(struct pvr2_hdw *hdw) { diff --git a/drivers/media/usb/pvrusb2/pvrusb2-hdw.h b/drivers/media/usb/pvrusb2/pvrusb2-hdw.h index 4184707..b108aaf 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-hdw.h +++ b/drivers/media/usb/pvrusb2/pvrusb2-hdw.h @@ -271,9 +271,6 @@ int pvr2_hdw_cmd_deep_reset(struct pvr2_hdw *); /* Execute simple reset command */ int pvr2_hdw_cmd_powerup(struct pvr2_hdw *); -/* suspend */ -int pvr2_hdw_cmd_powerdown(struct pvr2_hdw *); - /* Order decoder to reset */ int pvr2_hdw_cmd_decoder_reset(struct pvr2_hdw *);