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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux