mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 15:20:05 +01:00
xfree86: fix compiler warnings in DoModalias()
The precedence of == is higher than that of &, so that code was probably buggy. xf86Init.c: In function 'DoModalias': xf86Init.c:300: warning: suggest parentheses around comparison in operand of & xf86Init.c:304: warning: suggest parentheses around comparison in operand of & xf86Init.c:308: warning: suggest parentheses around comparison in operand of &
This commit is contained in:
parent
66fd05acd6
commit
ffaaa1a198
1 changed files with 3 additions and 3 deletions
|
|
@ -297,15 +297,15 @@ DoModalias(void)
|
|||
ErrorF("sd%08X", match->subdevice_id);
|
||||
|
||||
/* Class */
|
||||
if (match->device_class_mask >> 16 & 0xFF == 0xFF)
|
||||
if ((match->device_class_mask >> 16 & 0xFF) == 0xFF)
|
||||
ErrorF("bc%02X", match->device_class >> 16 & 0xFF);
|
||||
else
|
||||
ErrorF("bc*");
|
||||
if (match->device_class_mask >> 8 & 0xFF == 0xFF)
|
||||
if ((match->device_class_mask >> 8 & 0xFF) == 0xFF)
|
||||
ErrorF("sc%02X", match->device_class >> 8 & 0xFF);
|
||||
else
|
||||
ErrorF("sc*");
|
||||
if (match->device_class_mask & 0xFF == 0xFF)
|
||||
if ((match->device_class_mask & 0xFF) == 0xFF)
|
||||
ErrorF("i%02X*", match->device_class & 0xFF);
|
||||
else
|
||||
ErrorF("i*");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue