summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/108/other/1393486
blob: 9265ede225007520753927c0ccb06f2339d616ae (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
33
34
vnc: 0.774
device: 0.719
performance: 0.711
socket: 0.656
network: 0.608
graphic: 0.505
files: 0.440
semantic: 0.407
permissions: 0.401
PID: 0.368
boot: 0.320
other: 0.318
KVM: 0.313
debug: 0.266

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