From patchwork Thu Jan 1 17:51:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557471 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 6A7B29F344 for ; Thu, 1 Jan 2015 17:48:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 954862024C for ; Thu, 1 Jan 2015 17:48:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C9584201C8 for ; Thu, 1 Jan 2015 17:48:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbbAARsb (ORCPT ); Thu, 1 Jan 2015 12:48:31 -0500 Received: from mail-wg0-f42.google.com ([74.125.82.42]:60700 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbbAARsa (ORCPT ); Thu, 1 Jan 2015 12:48:30 -0500 Received: by mail-wg0-f42.google.com with SMTP id k14so23485912wgh.29 for ; Thu, 01 Jan 2015 09:48:29 -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=qwXNb3XSumnKEPX5W37NvYYM8W7Oz9GR1lgvYf7/HtQ=; b=D834t54oZBy/4bSWNRhMnIULQE2zp1QKvZGAUxWIhmyGV3sSrESiXpt4uTTMiDYazj ukOW4pdR0LYHRWbDFUrqpQxA2Besps0SNvs69bJbb4xKclR1lFo25UvwrDEjvl2N0mzu cXkRV3H+iXXD5KpvWN0iUdaM5Rtsgn4dG3T1g4uGJXH0SxNHcFqhaBzQ45eZB6wNIlcP 9aJCZYJ9l9PH5iygYAWaTutUez7Mew1MC9/QMZKuSD0p0fIro+7S7uPPNMk3Ze4ZpTvH rSMfzom9f5wqBhXMR0ieVbi7nxS74NOoTHOgtydnw6gEmpxHYO1GKcmY+Ca/EI+P8diA O8/w== X-Gm-Message-State: ALoCoQkRuOWfg1htuLLK/eP67Z6TU1/IfVLn62oDA1qPvR9s+AJuf2ySNeHpkN4m0us5BgRNRbVl X-Received: by 10.180.218.74 with SMTP id pe10mr127167109wic.48.1420134509710; Thu, 01 Jan 2015 09:48:29 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id cg8sm59772761wjc.1.2015.01.01.09.48.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 09:48:28 -0800 (PST) From: Rickard Strandqvist To: Mauro Carvalho Chehab , Laurent Pinchart Cc: Rickard Strandqvist , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: platform: vsp1: vsp1_hsit: Remove unused function Date: Thu, 1 Jan 2015 18:51:30 +0100 Message-Id: <1420134690-993-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 vsp1_hsit_read() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Acked-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_hsit.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/media/platform/vsp1/vsp1_hsit.c b/drivers/media/platform/vsp1/vsp1_hsit.c index db2950a..9fb003b 100644 --- a/drivers/media/platform/vsp1/vsp1_hsit.c +++ b/drivers/media/platform/vsp1/vsp1_hsit.c @@ -26,11 +26,6 @@ * Device Access */ -static inline u32 vsp1_hsit_read(struct vsp1_hsit *hsit, u32 reg) -{ - return vsp1_read(hsit->entity.vsp1, reg); -} - static inline void vsp1_hsit_write(struct vsp1_hsit *hsit, u32 reg, u32 data) { vsp1_write(hsit->entity.vsp1, reg, data);