projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
yaffs: Change renaming count_bits to hweight8
[yaffs2.git]
/
direct
/
basic-test
/
yramsim.c
diff --git
a/direct/basic-test/yramsim.c
b/direct/basic-test/yramsim.c
index 9b50a39a76d517bff8c8414274453a8ddcde7f8f..1fbf5fe215f02958e16d47f52cb1ffde3eb852a2 100644
(file)
--- a/
direct/basic-test/yramsim.c
+++ b/
direct/basic-test/yramsim.c
@@
-260,11
+260,11
@@
struct yaffs_dev *yramsim_CreateRamSim(const YCHAR *name,
sim = yramsim_alloc_sim_data(devId, nBlocks);
- g =
YMALLOC
(sizeof(ynandif_Geometry));
+ g =
malloc
(sizeof(ynandif_Geometry));
if(!sim || !g){
if(g)
-
YFREE
(g);
+
free
(g);
return NULL;
}