From patchwork Fri Aug 5 22:05:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Tobias Schandinat X-Patchwork-Id: 1039392 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p75LkXYj018697 for ; Fri, 5 Aug 2011 21:46:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755728Ab1HEVqd (ORCPT ); Fri, 5 Aug 2011 17:46:33 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:44939 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755239Ab1HEVqc (ORCPT ); Fri, 5 Aug 2011 17:46:32 -0400 Received: (qmail invoked by alias); 05 Aug 2011 21:46:31 -0000 Received: from dslb-092-074-246-200.pools.arcor-ip.net (EHLO localhost.localdomain) [92.74.246.200] by mail.gmx.net (mp034) with SMTP; 05 Aug 2011 23:46:31 +0200 X-Authenticated: #10250065 X-Provags-ID: V01U2FsdGVkX18IFwQvQsEI//01b3g4jCMAQPWgZ64YBqi0dukVfG qyZwEM9bbKJk/x From: Florian Tobias Schandinat To: linux-fbdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Florian Tobias Schandinat Subject: [PATCH 4/6] viafb: remove superfluous mode lookup Date: Fri, 5 Aug 2011 22:05:12 +0000 Message-Id: <1312581912-4198-1-git-send-email-FlorianSchandinat@gmx.de> X-Mailer: git-send-email 1.6.3.2 In-Reply-To: References: X-Y-GMX-Trusted: 0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 05 Aug 2011 21:46:33 +0000 (UTC) As the result is not used anywhere there is no need to perform the lookup at all. Signed-off-by: Florian Tobias Schandinat --- drivers/video/via/viafbdev.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index bddae58..3eaf607 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c @@ -1735,7 +1735,6 @@ static struct viafb_pm_hooks viafb_fb_pm_hooks = { int __devinit via_fb_pci_probe(struct viafb_dev *vdev) { u32 default_xres, default_yres; - struct VideoModeTable *vmode_entry; struct fb_var_screeninfo default_var; int rc; u32 viafb_par_length; @@ -1808,7 +1807,6 @@ int __devinit via_fb_pci_probe(struct viafb_dev *vdev) } parse_mode(viafb_mode, &default_xres, &default_yres); - vmode_entry = viafb_get_mode(default_xres, default_yres); if (viafb_SAMM_ON == 1) parse_mode(viafb_mode1, &viafb_second_xres, &viafb_second_yres);