9
0
Fork 0

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:
Sascha Hauer 2016-07-20 15:03:43 +02:00
parent bf1b4877bc
commit cb47ddee1b
1 changed files with 6 additions and 3 deletions

View File

@ -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) {