aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiapeng Zhong <[email protected]>2021-01-20 15:50:31 +0800
committerMichael S. Tsirkin <[email protected]>2021-02-23 07:52:56 -0500
commit02cc6b495dd694484167a841d7ede4b6209c658f (patch)
tree1d72960e8bb96646295d4ce2e3d5fbbe0e1b6ef8
parentf40ddce88593482919761f74910f42f4b84c004b (diff)
virtio-mem: Assign boolean values to a bool variable
Fix the following coccicheck warnings: ./drivers/virtio/virtio_mem.c:2580:2-25: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Zhong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tian Tao <[email protected]> Acked-by: David Hildenbrand <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
-rw-r--r--drivers/virtio/virtio_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c
index 9fc9ec4a25f5..85a272c9978e 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");
}