blob: f0f51c23b1c7295a7a0dc9acf946422a70f48d89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
hw/usb/dev-mtp.c:1616: bad test ?
hw/usb/dev-mtp.c:1616:52: warning: logical ‘or’ of collectively exhaustive tests is always true [-Wlogical-op]
Source code is
if ((ret == -1) && (errno != EINTR || errno != EAGAIN ||
errno != EWOULDBLOCK)) {
Maybe better code
if ((ret == -1) && (errno != EINTR && errno != EAGAIN &&
errno != EWOULDBLOCK)) {
|