From patchwork Thu Jan 1 17:03:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557291 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 8D82C9F2ED for ; Thu, 1 Jan 2015 17:00:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8DA02024C for ; Thu, 1 Jan 2015 17:00:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF4E62021B for ; Thu, 1 Jan 2015 17:00:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752015AbbAARAg (ORCPT ); Thu, 1 Jan 2015 12:00:36 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:45702 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750956AbbAARAg (ORCPT ); Thu, 1 Jan 2015 12:00:36 -0500 Received: by mail-wi0-f171.google.com with SMTP id bs8so26824564wib.4 for ; Thu, 01 Jan 2015 09:00:35 -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=1CzoOd0kJ8MmjiAE7tCrBCyj6784hOsOTnIDicAgyqk=; b=E7fyNsdK3TiXQ2QfoMdg7T2207LN3W+JSpvm5HTiHgH85WAvAleNUQGcwBWTdWwKi7 NcK4yAjTHyq90SKd5XLQO2NqUc2wnxwXVhk3O8cA1i9PtHyK3DUulMglYFSsEL+xZk+K CUoe8kNd8tqn5nAxSGDTSDraTC8PNCT9ud1C+J1C4rvfFkGNAETwfU5otE1fW8Lpg7CS BNWA1N6t4aUXe7If0g1H5u7PxDQjabVJxx0sv/BrqvbqGfVDuLrhtfYcSUCQCLYCVl18 eGT+PmxKrHydFxmP68vWl5L8QeO0MpLAnZ+dUGxkFvXfg3DsrSTcY68BE9NVSPqXQbp6 ndPA== X-Gm-Message-State: ALoCoQmVNqnmH/EoxEKO/EnDCp1E64pcmVICQwZQCpl4MxDNVRXnToFmDnerN9kHpBeQg87xfKa+ X-Received: by 10.180.85.34 with SMTP id e2mr127228954wiz.0.1420131634937; Thu, 01 Jan 2015 09:00:34 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id gl5sm54316212wib.0.2015.01.01.09.00.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 09:00:34 -0800 (PST) From: Rickard Strandqvist To: Mauro Carvalho Chehab , Hans Verkuil Cc: Rickard Strandqvist , "Lad, Prabhakar" , Laurent Pinchart , Sakari Ailus , Mikhail Domrachev , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: pci: saa7134: saa7134-video.c: Remove unused function Date: Thu, 1 Jan 2015 18:03:35 +0100 Message-Id: <1420131815-31335-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 saa7134_queue() 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/pci/saa7134/saa7134-video.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c index fc4a427..cf40573 100644 --- a/drivers/media/pci/saa7134/saa7134-video.c +++ b/drivers/media/pci/saa7134/saa7134-video.c @@ -1098,11 +1098,6 @@ static int saa7134_s_ctrl(struct v4l2_ctrl *ctrl) /* ------------------------------------------------------------------ */ -static inline struct vb2_queue *saa7134_queue(struct file *file) -{ - return video_devdata(file)->queue; -} - static int video_open(struct file *file) { struct video_device *vdev = video_devdata(file);