From patchwork Tue Jan 13 18:19:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5623261 Return-Path: X-Original-To: patchwork-linux-fbdev@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 A5AC7C058D for ; Tue, 13 Jan 2015 18:16:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D828E2037C for ; Tue, 13 Jan 2015 18:16:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5BC4820558 for ; Tue, 13 Jan 2015 18:16:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751598AbbAMSQP (ORCPT ); Tue, 13 Jan 2015 13:16:15 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:45765 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbbAMSQP (ORCPT ); Tue, 13 Jan 2015 13:16:15 -0500 Received: by mail-wg0-f41.google.com with SMTP id l18so4580015wgh.0 for ; Tue, 13 Jan 2015 10:16:13 -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=CZWp8nynqO3cMKopqBWu5dmTYhPZspU9bAe8f/nQQFQ=; b=gdjMo7P3lWQLnyrOxluzad6g1EAIbCKHj5ZdSsLB3Q+sqonicNJ6VlyAknKt+IDRXe 2mUuV0+tmiflUzMlODCXRCQLd4it85Gspx73BruuLm7fyI2Z4GyyBuaWoF6hlaRS+JyU hylyk29MoJSP9IbPAEni7n80U39wbzJa+wt/Hg6PunVlrPRvlQCKCYTyw/CRN/kIKVYL ZkdZ/4ZkEDNn0t7mnNGmWFgQ4tgZUQ0cLT6NpVsF7BrLugth1/TCagLW4AzHv6W734Nj qbwoTzwyYlfT31G8xPP1BR0vi11JzI6iXfcbeeoUvqrW8R/PV4KNBiW+lxWHIUaUu6T8 sKpg== X-Gm-Message-State: ALoCoQmQ4zUKSmnEP/4v1czqqW3Z9jC25nHDOHB67I3K5uWSCWDqHSbs0zGKJa/sBBTj4GivHYfq X-Received: by 10.181.13.136 with SMTP id ey8mr1192265wid.50.1421172973628; Tue, 13 Jan 2015 10:16:13 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id e4sm26671847wjw.48.2015.01.13.10.16.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 10:16:12 -0800 (PST) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: tridentfb: Remove unused function Date: Tue, 13 Jan 2015 19:19:20 +0100 Message-Id: <1421173160-3644-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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=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 shadowmode_off() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/video/fbdev/tridentfb.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/video/fbdev/tridentfb.c b/drivers/video/fbdev/tridentfb.c index 7ed9a22..b5cbd2c 100644 --- a/drivers/video/fbdev/tridentfb.c +++ b/drivers/video/fbdev/tridentfb.c @@ -999,11 +999,6 @@ static inline void shadowmode_on(struct tridentfb_par *par) write3CE(par, CyberControl, read3CE(par, CyberControl) | 0x81); } -static inline void shadowmode_off(struct tridentfb_par *par) -{ - write3CE(par, CyberControl, read3CE(par, CyberControl) & 0x7E); -} - /* Set the hardware to the requested video mode */ static int tridentfb_set_par(struct fb_info *info) {