diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-04 11:02:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-04 11:02:42 +0200 |
commit | 49c2e4ebe8f4b5f457201385f075fb80476a7977 (patch) | |
tree | 4566e412b66d8d63e668bcb973abcdfba0fa029c /common | |
parent | 9719692439b21f828eb63d6e8d703ec34fbfebe2 (diff) | |
download | barebox-49c2e4ebe8f4b5f457201385f075fb80476a7977.tar.gz barebox-49c2e4ebe8f4b5f457201385f075fb80476a7977.tar.xz |
blspec: Use cdev_mount()
In blspec we want either get the path where the cdev is mounted or mount
it to the default path. That's what cdev_mount() does for us, so use it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/blspec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/blspec.c b/common/blspec.c index d391f690ad..9ae7b49a77 100644 --- a/common/blspec.c +++ b/common/blspec.c @@ -677,9 +677,7 @@ static int blspec_scan_cdev(struct bootentries *bootentries, struct cdev *cdev) found += ret; } - rootpath = cdev_get_mount_path(cdev); - if (!rootpath) - rootpath = cdev_mount_default(cdev, NULL); + rootpath = cdev_mount(cdev); if (!IS_ERR(rootpath)) { ret = blspec_scan_directory(bootentries, rootpath); if (ret > 0) |