diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 4a05bacd6601dfa98c1b7cd5be1240ab57a33b33..ad5a85847004f6cef2ed040c84f15709cdb3a601 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -2076,8 +2076,7 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks, /* deallocate the page memory */ for (k = 0; k < page; k++) { - if (new_bp[k].map) - kfree(new_bp[k].map); + kfree(new_bp[k].map); } /* restore some fields from old_counts */