9
0
Fork 0

fs: squashfs: don't reference UBI symbols if UBI isn't compiled in

There is no point in trying to append a UBI root option, if there is
no UBI support in barebox.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2016-12-20 10:33:32 +01:00 committed by Sascha Hauer
parent f49b415b92
commit 1d117c4888
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ void squashfs_set_rootarg(struct squashfs_priv *priv, struct fs_device_d *fsdev)
struct mtd_info *mtd;
char *str;
if (!IS_ENABLED(CONFIG_MTD_UBI))
return;
ubi_vol = ubi_open_volume_cdev(fsdev->cdev, UBI_READONLY);
if (IS_ERR(ubi_vol))