diff options
Diffstat (limited to 'results/scraper/launchpad-without-comments/1393486')
| -rw-r--r-- | results/scraper/launchpad-without-comments/1393486 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1393486 b/results/scraper/launchpad-without-comments/1393486 new file mode 100644 index 000000000..57c654680 --- /dev/null +++ b/results/scraper/launchpad-without-comments/1393486 @@ -0,0 +1,15 @@ +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; + } \ No newline at end of file |