[PATCH] fs: syntax fix in ramfs.c

Stefan Christ s.christ at phytec.de
Wed Sep 30 01:58:54 PDT 2015


Signed-off-by: Stefan Christ <s.christ at phytec.de>
---
 fs/ramfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ramfs.c b/fs/ramfs.c
index 716f40f..a97f0a6 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -495,7 +495,7 @@ static int ramfs_truncate(struct device_d *dev, FILE *f, ulong size)
 			data->next = ramfs_get_chunk();
 			if (!data->next)
 				return -ENOMEM;
-		data = data->next;
+			data = data->next;
 		}
 	}
 	node->size = size;
-- 
1.9.1




More information about the barebox mailing list