kopia lustrzana https://gitlab.com/sane-project/backends
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
rodzic
74f601188b
commit
328a5d654b
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue