Skip to content

Commit 5461800

Browse files
morimotojmberg-intel
authored andcommitted
um: drivers: virtio: use string choices helper
Remove hard-coded strings by using the string helper functions Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87h5uywtwp.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 293f714 commit 5461800

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/um/drivers/virtio_uml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <linux/of.h>
2525
#include <linux/platform_device.h>
2626
#include <linux/slab.h>
27+
#include <linux/string_choices.h>
2728
#include <linux/virtio.h>
2829
#include <linux/virtio_config.h>
2930
#include <linux/virtio_ring.h>
@@ -1151,8 +1152,7 @@ void virtio_uml_set_no_vq_suspend(struct virtio_device *vdev,
11511152
return;
11521153

11531154
vu_dev->no_vq_suspend = no_vq_suspend;
1154-
dev_info(&vdev->dev, "%sabled VQ suspend\n",
1155-
no_vq_suspend ? "dis" : "en");
1155+
dev_info(&vdev->dev, "%s VQ suspend\n", str_disabled_enabled(no_vq_suspend));
11561156
}
11571157

11581158
static void vu_of_conn_broken(struct work_struct *wk)

0 commit comments

Comments
 (0)