hp3900: Fix [-Wtautological-compare] compiler warning

Although the fix changes the backend's logic, it probably matches what
was the original code's intent.
merge-requests/280/head
Olaf Meeuwissen 2019-12-23 21:57:36 +09:00
rodzic 74f601188b
commit 328a5d654b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -4116,7 +4116,7 @@ Lamp_Status_Get (struct st_device *dev, SANE_Byte * flb_lamp,
case RTS8822BL_03A:
*flb_lamp = ((data2 & 0x40) != 0) ? 1 : 0;
*tma_lamp = (((data2 & 0x20) != 0)
&& ((data1 & 0x10) == 1)) ? 1 : 0;
&& ((data1 & 0x10) != 0)) ? 1 : 0;
break;
default:
if ((_B1 (data1) & 0x10) == 0)