diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-05 11:55:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-12 12:05:01 +0200 |
commit | 5058a25d1ed7f3bfa48cf84dfbe66a4160a8d9bf (patch) | |
tree | 7544be991bc68958ec083e474db437a23c00f76f /drivers/of | |
parent | 2b8bf0ce90ca6f78accc166605af7371161af4e6 (diff) | |
download | barebox-5058a25d1ed7f3bfa48cf84dfbe66a4160a8d9bf.tar.gz |
of: overlay: drop unused variable of_overlay_apply_dir()
This seems to be a copy-paste left-over from of_overlay_filter_filename,
which has some actual use for both p and path. We don't though and just
end up leaking the buffer, so drop these variables.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220905095557.596891-24-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/overlay.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 20a43f5170..fff1d6ea02 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c @@ -418,7 +418,6 @@ void of_overlay_set_basedir(const char *path) static int of_overlay_apply_dir(struct device_node *root, const char *dirname, bool filter) { - char *p, *path; int ret = 0; DIR *dir; @@ -431,8 +430,6 @@ static int of_overlay_apply_dir(struct device_node *root, const char *dirname, if (!dir) return -errno; - p = path = strdup(of_overlay_filepattern); - while (1) { struct dirent *ent; char *filename; |