blob: 02544bfbf9238b65a2d15753cf348626787ad9e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
device: 0.653
socket: 0.650
instruction: 0.598
vnc: 0.576
network: 0.565
graphic: 0.498
semantic: 0.448
other: 0.419
mistranslation: 0.418
assembly: 0.365
KVM: 0.347
boot: 0.270
[hw/scsi/scsi-bus.c:910]: (style) Expression '(X & 0x4) == 0x1' is always false.
Source code is
} else if ((buf[1] & 4) == 1) {
Suggest code rework. I found this bug by running
static analyser cppcheck over the source code.
I also checked the latest code on the web and the
bug exists there also.
Looks like this has been fixed here already:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=7ef8cf9a0861b6f67f5e
|