This was reported for this warning:
hw/virtio/virtio-rng.c:150:31: warning: logical not is only applied to
the left hand side of comparison [-Wlogical-not-parentheses]
Change-Id: I7912c36bfd7520de2b9bfb14c92442fdea68d062
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
VirtIORNG *vrng = VIRTIO_RNG(dev);
Error *local_err = NULL;
- if (!vrng->conf.period_ms > 0) {
+ if (vrng->conf.period_ms <= 0) {
error_set(errp, QERR_INVALID_PARAMETER_VALUE, "period",
"a positive number");
return;