From patchwork Sat Dec 20 17:17:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5524051 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 56AF99F2F7 for ; Sun, 21 Dec 2014 12:59:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E8D02011E for ; Sun, 21 Dec 2014 12:59:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 827B3200E7 for ; Sun, 21 Dec 2014 12:59:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7274E6E1E9; Sun, 21 Dec 2014 04:59:19 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by gabe.freedesktop.org (Postfix) with ESMTP id BE29F6E14D for ; Sat, 20 Dec 2014 09:14:44 -0800 (PST) Received: by mail-wi0-f169.google.com with SMTP id r20so7304823wiv.2 for ; Sat, 20 Dec 2014 09:14:43 -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=+gtBopdrU866OIvWPlSqwLrGbLePQCd1+CwANKxiS2s=; b=BhLqHpAXedC/93JC64uO6Zva1OxXScKF+DHCaONk/RfmpnjuIH1jjCOpSTOQXzpQF2 DVMBziz3+Dw3cqTWIifLaVlJhMAtqvVoQayy2j4mDXGO1YDX9JokY1U35h4QIsd7xkxT dKRislBfa6tXnvMJL3nO1pW64q5vvVK8s+mP501+Ua6tifZrt0negLA1YjQ60ZI3c4yS FZeAnj9b6j5B35lQZqxNTWFnCbUqGrDcAWn9tqNFyvV70GkNAK1Q+yVFnRasoXE4qSla Qs7dfReJv6q5BD/e8Ljd8GlJYGTbpEi1LKVwCbUd2JtCeoa3RhngqbeKY7Z8aqP0/gsE Jljw== X-Gm-Message-State: ALoCoQmPD1EgF2jXOaYgUbMP1DKAoFrXY4NhaDOjUVPK3A8C58eODnGeFmCqE1FBlXlz15Ehm2k9 X-Received: by 10.181.13.75 with SMTP id ew11mr15770764wid.69.1419095683540; Sat, 20 Dec 2014 09:14:43 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id eu15sm6559196wid.18.2014.12.20.09.14.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Dec 2014 09:14:42 -0800 (PST) From: Rickard Strandqvist To: David Airlie , Benjamin Gaignard Subject: [PATCH] gpu: drm: sti: sti_drm_crtc.c: Remove unused function Date: Sat, 20 Dec 2014 18:17:30 +0100 Message-Id: <1419095850-10436-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Sun, 21 Dec 2014 04:59:18 -0800 Cc: Dave Airlie , 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=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 Remove the function sti_drm_crtc_is_main() 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/sti/sti_drm_crtc.c | 10 ---------- drivers/gpu/drm/sti/sti_drm_crtc.h | 1 - 2 files changed, 11 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_drm_crtc.c b/drivers/gpu/drm/sti/sti_drm_crtc.c index d2ae0c0..be53e35 100644 --- a/drivers/gpu/drm/sti/sti_drm_crtc.c +++ b/drivers/gpu/drm/sti/sti_drm_crtc.c @@ -389,16 +389,6 @@ static struct drm_crtc_funcs sti_crtc_funcs = { .set_property = sti_drm_crtc_set_property, }; -bool sti_drm_crtc_is_main(struct drm_crtc *crtc) -{ - struct sti_mixer *mixer = to_sti_mixer(crtc); - - if (mixer->id == STI_MIXER_MAIN) - return true; - - return false; -} - int sti_drm_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer, struct drm_plane *primary, struct drm_plane *cursor) { diff --git a/drivers/gpu/drm/sti/sti_drm_crtc.h b/drivers/gpu/drm/sti/sti_drm_crtc.h index caca8b1..ddae8fe 100644 --- a/drivers/gpu/drm/sti/sti_drm_crtc.h +++ b/drivers/gpu/drm/sti/sti_drm_crtc.h @@ -17,6 +17,5 @@ int sti_drm_crtc_enable_vblank(struct drm_device *dev, int crtc); void sti_drm_crtc_disable_vblank(struct drm_device *dev, int crtc); int sti_drm_crtc_vblank_cb(struct notifier_block *nb, unsigned long event, void *data); -bool sti_drm_crtc_is_main(struct drm_crtc *drm_crtc); #endif