aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-06-02 08:56:39 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-08-05 08:47:20 -0400
commit9ee3ec49e268c7a01217d7865c53562fae1edf33 (patch)
tree4c9258bead8e09bd7dd909e185439358fa4c4486
parentc174e3a3cd0594958c9afc6cdb8fbe20780d9c76 (diff)
viafb: remove superfluous mode lookup
As the result is not used anywhere there is no need to perform the lookup at all. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
-rw-r--r--drivers/video/via/viafbdev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index bddae58ecd8a..3eaf607bdf48 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 = {
1735int __devinit via_fb_pci_probe(struct viafb_dev *vdev) 1735int __devinit via_fb_pci_probe(struct viafb_dev *vdev)
1736{ 1736{
1737 u32 default_xres, default_yres; 1737 u32 default_xres, default_yres;
1738 struct VideoModeTable *vmode_entry;
1739 struct fb_var_screeninfo default_var; 1738 struct fb_var_screeninfo default_var;
1740 int rc; 1739 int rc;
1741 u32 viafb_par_length; 1740 u32 viafb_par_length;
@@ -1808,7 +1807,6 @@ int __devinit via_fb_pci_probe(struct viafb_dev *vdev)
1808 } 1807 }
1809 1808
1810 parse_mode(viafb_mode, &default_xres, &default_yres); 1809 parse_mode(viafb_mode, &default_xres, &default_yres);
1811 vmode_entry = viafb_get_mode(default_xres, default_yres);
1812 if (viafb_SAMM_ON == 1) 1810 if (viafb_SAMM_ON == 1)
1813 parse_mode(viafb_mode1, &viafb_second_xres, 1811 parse_mode(viafb_mode1, &viafb_second_xres,
1814 &viafb_second_yres); 1812 &viafb_second_yres);