Add files to hook up yaffs direct to u-boot
[yaffs2.git] / yaffs_guts.c
index 6ad45fce6c1113d0ab8d926b40a3f68aee0f7475..8acb59ba655bae1b3029c037e14acc1dd4e70a03 100644 (file)
@@ -280,7 +280,8 @@ static void yaffs_handle_chunk_wr_error(struct yaffs_dev *dev, int nand_chunk,
 
 static inline int yaffs_hash_fn(int n)
 {
-       n = abs(n);
+       if(n < 0)
+               n = -n;
        return n % YAFFS_NOBJECT_BUCKETS;
 }