yaffsfs.c: Fix NULL dereference in yaffs_unmount2_reldev()
[yaffs2.git] / direct / test-framework / yaffs_ramem2k.c
index 6bd3a0e73ec17c65b6be410aa05e97e84f059ca3..73195c9a3f2ba2372b0ac2d55690008275a6aaed 100644 (file)
@@ -175,9 +175,11 @@ static int  CheckInit(void)
                }
                kfree(ned.block);
 
+               (void) sizeInMB;
+
                yaffs_trace(YAFFS_TRACE_ALWAYS,
                        "Allocation failed, could only allocate %dMB of %dMB requested.\n",
-                       nAllocated/64,sizeInMB);
+                       nAllocated/64, sizeInMB);
                return 0;
        }