X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_mtdif1_single.c;h=740f7f64d4d0f039337f4df7025cc6081d206d5c;hp=51083695eb3347eea20734317ac27d2b276338e8;hb=5907bcd9553ddbddfbfbf116193834a3f444c70b;hpb=79d0e028d5b777b2e4cf55d96b737cb024988abe diff --git a/yaffs_mtdif1_single.c b/yaffs_mtdif1_single.c index 5108369..740f7f6 100644 --- a/yaffs_mtdif1_single.c +++ b/yaffs_mtdif1_single.c @@ -207,7 +207,7 @@ int nandmtd1_read_chunk_tags(struct yaffs_dev *dev, deleted = !pt1.deleted; pt1.deleted = 1; #else - deleted = (yaffs_count_bits(((u8 *) & pt1)[8]) < 7); + deleted = (hweight8(((u8 *) & pt1)[8]) < 7); #endif /* Check the packed tags mini-ECC and correct if necessary/possible.