* Re: [PATCH] virtio-mem: use false for bool variable
[not found] <1609209869-10354-1-git-send-email-tiantao6@hisilicon.com>
@ 2020-12-29 9:06 ` David Hildenbrand
0 siblings, 0 replies; only message in thread
From: David Hildenbrand @ 2020-12-29 9:06 UTC (permalink / raw)
To: Tian Tao, mst, jasowang; +Cc: virtualization
On 29.12.20 03:44, Tian Tao wrote:
> Fixes coccicheck warnings:
> drivers/virtio/virtio_mem.c:2580:2-25: WARNING: Assignment of 0/1 to
> bool variable.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
> drivers/virtio/virtio_mem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c
> index 9fc9ec4..85a272c 100644
> --- a/drivers/virtio/virtio_mem.c
> +++ b/drivers/virtio/virtio_mem.c
> @@ -2577,7 +2577,7 @@ static int virtio_mem_probe(struct virtio_device *vdev)
> * actually in use (e.g., trying to reload the driver).
> */
> if (vm->plugged_size) {
> - vm->unplug_all_required = 1;
> + vm->unplug_all_required = true;
> dev_info(&vm->vdev->dev, "unplugging all memory is required\n");
> }
>
>
Thanks - the patch subject is a little weird ("false"). I suggest
"virtio-mem: use boolean value when setting vm->unplug_all_required"
Apart from that
Acked-by: David Hildenbrand <david@redhat.com>
@Mst, do you want a resend or can you fixup the subject? Thanks!
--
Thanks,
David / dhildenb
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-29 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1609209869-10354-1-git-send-email-tiantao6@hisilicon.com>
2020-12-29 9:06 ` [PATCH] virtio-mem: use false for bool variable David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).