[PATCH] fs: ramfs: drop free of unused dev->priv

Ahmad Fatoum a.fatoum at pengutronix.de
Sat Oct 30 07:17:07 PDT 2021


This probably was a benign free(NULL) so far, but it serves no point, so
drop it.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 fs/ramfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ramfs.c b/fs/ramfs.c
index 14ba87766098..bdaa91dd9e1b 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -447,7 +447,6 @@ static int ramfs_probe(struct device_d *dev)
 
 static void ramfs_remove(struct device_d *dev)
 {
-	free(dev->priv);
 }
 
 static struct fs_driver_d ramfs_driver = {
-- 
2.30.2




More information about the barebox mailing list