[haiku-commits] r43227 - haiku/trunk/src/add-ons/accelerants/radeon_hd

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 8 Nov 2011 22:48:50 +0100 (CET)

Author: kallisti5
Date: 2011-11-08 22:48:49 +0100 (Tue, 08 Nov 2011)
New Revision: 43227
Changeset: https://dev.haiku-os.org/changeset/43227

Modified:
   haiku/trunk/src/add-ons/accelerants/radeon_hd/bios.cpp
Log:
* correct gcc2 warning about always true situation
* style fix


Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/bios.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/bios.cpp      2011-11-08 
19:50:07 UTC (rev 43226)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/bios.cpp      2011-11-08 
21:48:49 UTC (rev 43227)
@@ -91,10 +91,10 @@
                                + EVERGREEN_CRTC5_REGISTER_OFFSET);
                if ((reg & EVERGREEN_CRTC_MASTER_EN) != 0)
                        return true;
-       } else if (info.chipsetID >= RADEON_R420) {
+       } else {
                // avivio through r700
-               reg = Read32(OUT, AVIVO_D1CRTC_CONTROL) |
-                       Read32(OUT, AVIVO_D2CRTC_CONTROL);
+               reg = Read32(OUT, AVIVO_D1CRTC_CONTROL)
+                       | Read32(OUT, AVIVO_D2CRTC_CONTROL);
                if ((reg & AVIVO_CRTC_EN) != 0) {
                        return true;
                }


Other related posts:

  • » [haiku-commits] r43227 - haiku/trunk/src/add-ons/accelerants/radeon_hd - kallisti5