[PATCH 23/42] ramfs: sparse fixes
Sascha Hauer
s.hauer at pengutronix.de
Tue Oct 19 08:55:11 EDT 2010
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
fs/ramfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 9ecb824..6222550 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -420,7 +420,7 @@ static int ramfs_truncate(struct device_d *dev, FILE *f, ulong size)
if (newchunks < oldchunks) {
if (!newchunks)
- node->data = 0;
+ node->data = NULL;
while (newchunks--)
data = data->next;
while (data) {
--
1.7.2.3
More information about the barebox
mailing list