summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/vnc/1393486
blob: 99f62ee0fbfe08965ff9ece0f8012f5a6e465cdb (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
30
31
32
vnc: 0.774
device: 0.719
mistranslation: 0.671
socket: 0.656
network: 0.608
instruction: 0.547
graphic: 0.505
semantic: 0.407
boot: 0.320
other: 0.318
KVM: 0.313
assembly: 0.068

hw/virtio/virtio-rng.c:150: bad test ?

hw/virtio/virtio-rng.c:150:31: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]

    if (!vrng->conf.period_ms > 0) {
        error_setg(errp, "'period' parameter expects a positive integer");
        return;
    }

Maybe better code

    if (vrng->conf.period_ms <= 0) {
        error_setg(errp, "'period' parameter expects a positive integer");
        return;
    }

Fixed here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=a3a292c420d2fec3c07