diff --git a/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp b/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp index d9eac2758c..3ff213d82e 100644 --- a/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp +++ b/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp @@ -98,7 +98,7 @@ intel_get_interrupt_mask(intel_info& info, int pipes, bool enable) // Intel changed the PCH register mapping between Sandy Bridge and the // later generations (Ivy Bridge and up). - if (pipes & INTEL_PIPE_A != 0) { + if ((pipes & INTEL_PIPE_A) != 0) { if (info.device_type.InGroup(INTEL_GROUP_SNB)) mask |= PCH_INTERRUPT_VBLANK_PIPEA_SNB; else if (hasPCH) @@ -107,7 +107,7 @@ intel_get_interrupt_mask(intel_info& info, int pipes, bool enable) mask |= INTERRUPT_VBLANK_PIPEA; } - if (pipes & INTEL_PIPE_B != 0) { + if ((pipes & INTEL_PIPE_B) != 0) { if (info.device_type.InGroup(INTEL_GROUP_SNB)) mask |= PCH_INTERRUPT_VBLANK_PIPEB_SNB; else if (hasPCH) diff --git a/src/system/libroot/posix/termios.c b/src/system/libroot/posix/termios.c index 07851e9cf7..f60602eb7e 100644 --- a/src/system/libroot/posix/termios.c +++ b/src/system/libroot/posix/termios.c @@ -105,7 +105,7 @@ tcsendbreak(int fd, int duration) speed_t cfgetispeed(const struct termios *termios) { - if (termios->c_cflag & CBAUD == CBAUD) + if ((termios->c_cflag & CBAUD) == CBAUD) return termios->c_ispeed; return termios->c_cflag & CBAUD; @@ -134,7 +134,7 @@ cfsetispeed(struct termios *termios, speed_t speed) speed_t cfgetospeed(const struct termios *termios) { - if (termios->c_cflag & CBAUD == CBAUD) + if ((termios->c_cflag & CBAUD) == CBAUD) return termios->c_ospeed; return termios->c_cflag & CBAUD;