memstick/ms_block: Use the bitmap API when applicable
[linux-2.6-block.git] / drivers / memstick / core / ms_block.c
index f8fdf88fb240ce8d802e4dc1a72bf9d17ade5646..c05edfc1c8417daa71610e81ae99062c2bec53bd 100644 (file)
@@ -2245,8 +2245,8 @@ static int msb_resume(struct memstick_dev *card)
                goto out;
 
        if (msb->block_count != new_msb->block_count ||
-               memcmp(msb->used_blocks_bitmap, new_msb->used_blocks_bitmap,
-                                                       msb->block_count / 8))
+           !bitmap_equal(msb->used_blocks_bitmap, new_msb->used_blocks_bitmap,
+                                                       msb->block_count))
                goto out;
 
        card_dead = false;