boot: Call blspec_scan_directory() only on strings containing an absolute path
Avoids an unnecessary "Nothing bootable found on..." warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
bf1b4877bc
commit
cb47ddee1b
|
@ -202,9 +202,12 @@ static int bootentry_parse_one(struct blspec *blspec, const char *name)
|
|||
ret = blspec_scan_devicename(blspec, name);
|
||||
if (ret > 0)
|
||||
found += ret;
|
||||
ret = blspec_scan_directory(blspec, name);
|
||||
if (ret > 0)
|
||||
found += ret;
|
||||
|
||||
if (*name == '/') {
|
||||
ret = blspec_scan_directory(blspec, name);
|
||||
if (ret > 0)
|
||||
found += ret;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
|
|
Loading…
Reference in New Issue