From patchwork Sun Jan 11 16:53: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: 5617031 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DA5A6C058E for ; Tue, 13 Jan 2015 01:26:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1DB34204FC for ; Tue, 13 Jan 2015 01:26:10 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0DB4D204DE for ; Tue, 13 Jan 2015 01:26:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 58F326E56F; Mon, 12 Jan 2015 17:26:07 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by gabe.freedesktop.org (Postfix) with ESMTP id 149076E173 for ; Sun, 11 Jan 2015 08:50:30 -0800 (PST) Received: by mail-we0-f178.google.com with SMTP id p10so15435615wes.9 for ; Sun, 11 Jan 2015 08:50: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=JmjrYN/ERI74tayiwu03KfPVzH+V+BmgOQ/ZiZcCKgA=; b=QBpBl602f6ZVNuMg5HVWFwUsa7laxvhpUrQd4hHj+xj47wh3E5ar27q417MGl9JfPy nIewsUHCMKeKqZem2WNAPkhDgyVOn7R2GrwLS3agzEizY+2/KXIB78ZLd6s+OyTdsd7C FpLxFcSWzb3HP6wKlfWFaCjYpHek3hc+vbFQ1+YxDU30Pd/WOWVzic7VNXqn3uSdH2Gv cXP+CZnJEhtzlq9V2L/Y8iQKho/u36zcmZegTdPV6EdHHhqhwUkSXZilRq7dxCOo0sos sKiouRpiizle0l7jxlTKqhsdrndMLxKUrwmLxxiukglWtv+mIi6jUpNVXxZ9UUSSjuT6 hkig== X-Gm-Message-State: ALoCoQlJtFihWBPqq64jsOCltd1UrZfb8JQmve8wwfqtQOJWc8Pvubc3U/quEvsEH7AhBumjGPed X-Received: by 10.194.187.79 with SMTP id fq15mr51341955wjc.2.1420995029458; Sun, 11 Jan 2015 08:50: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 n8sm18204211wjx.0.2015.01.11.08.50.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 08:50:28 -0800 (PST) From: Rickard Strandqvist To: David Airlie , Patrik Jakobsson Subject: [PATCH] drm: gma500: psb_irq: Remove unused function Date: Sun, 11 Jan 2015 17:53:35 +0100 Message-Id: <1420995215-21383-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Mon, 12 Jan 2015 17:25:56 -0800 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rickard Strandqvist X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 mid_pipe_vsync() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/gma500/psb_irq.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c index 624eb36..dcfd0a7 100644 --- a/drivers/gpu/drm/gma500/psb_irq.c +++ b/drivers/gpu/drm/gma500/psb_irq.c @@ -59,18 +59,6 @@ mid_pipe_event(int pipe) } static inline u32 -mid_pipe_vsync(int pipe) -{ - if (pipe == 0) - return _PSB_VSYNC_PIPEA_FLAG; - if (pipe == 1) - return _PSB_VSYNC_PIPEB_FLAG; - if (pipe == 2) - return _MDFLD_PIPEC_VBLANK_FLAG; - BUG(); -} - -static inline u32 mid_pipeconf(int pipe) { if (pipe == 0)