[xf86-video-sis,2/4] Suppress logical operation and parenthesis related compilation warnings

Submitted by Kevin Brace on Dec. 17, 2018, 9:30 p.m.

Details

Message ID 1545082224-28797-2-git-send-email-kevinbrace@gmx.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in X.org

Not browsing as part of any series.

Commit Message

Kevin Brace Dec. 17, 2018, 9:30 p.m.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/sis_cursor.c  | 2 +-
 src/sis_utility.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/sis_cursor.c b/src/sis_cursor.c
index 32dcd9d..76a04b4 100644
--- a/src/sis_cursor.c
+++ b/src/sis_cursor.c
@@ -759,7 +759,7 @@  SiS300LoadCursorImage(ScrnInfoPtr pScrn, UChar *src)
     }
 
     if(pSiS->VBFlags & CRT2_ENABLE) {
-       if((pSiS->UseHWARGBCursor) && (!pSiS->VBFlags & DISPTYPE_CRT1)) {
+       if((pSiS->UseHWARGBCursor) && (!(pSiS->VBFlags & DISPTYPE_CRT1))) {
 	  status2 = sis301GetCursorStatus;
 	  sis301DisableHWCursor()
 	  SISWaitRetraceCRT2(pScrn);
diff --git a/src/sis_utility.c b/src/sis_utility.c
index 80bd672..c86bdbe 100644
--- a/src/sis_utility.c
+++ b/src/sis_utility.c
@@ -523,7 +523,7 @@  SISSwitchCRT2Type(ScrnInfoPtr pScrn, ULong newvbflags, Bool quiet)
     }
 #endif
 
-    if((!(newvbflags & CRT2_ENABLE)) && (!newvbflags & DISPTYPE_CRT1)) {
+    if((!(newvbflags & CRT2_ENABLE)) && (!(newvbflags & DISPTYPE_CRT1))) {
        if(!quiet) {
           xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
              "CRT2 can't be switched off while CRT1 is off\n");