summaryrefslogtreecommitdiffstats
path: root/init/do_mounts.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-05-31 14:55:12 +0200
committerJens Axboe <axboe@kernel.dk>2023-06-05 10:55:20 -0600
commitaa5f6ed8c21ec1aa5fd688118d8d5cd87c5ffc1d (patch)
tree5698e9d69ce818c563c6589b46f2367e644bf2ac /init/do_mounts.c
parentdd2e31afba9e3a3107aa202726b6199c55075f59 (diff)
downloadlinux-stable-aa5f6ed8c21ec1aa5fd688118d8d5cd87c5ffc1d.tar.gz
linux-stable-aa5f6ed8c21ec1aa5fd688118d8d5cd87c5ffc1d.tar.bz2
linux-stable-aa5f6ed8c21ec1aa5fd688118d8d5cd87c5ffc1d.zip
driver core: return bool from driver_probe_done
bool is the most sensible return value for a yes/no return. Also add __init as this funtion is only called from the early boot code. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20230531125535.676098-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r--init/do_mounts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 811e94daf0a8..2fe7901b5bcf 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -635,7 +635,7 @@ void __init prepare_namespace(void)
if ((ROOT_DEV == 0) && root_wait) {
printk(KERN_INFO "Waiting for root device %s...\n",
saved_root_name);
- while (driver_probe_done() != 0 ||
+ while (!driver_probe_done() ||
(ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
msleep(5);
async_synchronize_full();