X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=yaffs_mtdif1_multi.c;h=cf9c54cce23a98aa92a3b130edd21e9b9a6451a1;hb=66cf3cb88e161702e6bb8e1a98a79fc0c9e564d5;hp=603dc97a9f25670682b9d115a94404fa09aaf21c;hpb=fb619fcd9415e8a5b9c8bdad87fff07a1b2579ab;p=yaffs2.git diff --git a/yaffs_mtdif1_multi.c b/yaffs_mtdif1_multi.c index 603dc97..cf9c54c 100644 --- a/yaffs_mtdif1_multi.c +++ b/yaffs_mtdif1_multi.c @@ -238,7 +238,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.