dm-buffered: don't check for NULL when calling kfree kfree checks the pointer for NULL, no need to check it in the caller. Signed-off-by: Mikulas Patocka --- drivers/md/dm-buffered-target.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index: linux-2.6/drivers/md/dm-buffered-target.c =================================================================== --- linux-2.6.orig/drivers/md/dm-buffered-target.c +++ linux-2.6/drivers/md/dm-buffered-target.c @@ -554,8 +554,7 @@ static void buffered_dtr(struct dm_targe dm_bufio_client_destroy(bc->bufio); if (bc->dev) dm_put_device(ti, bc->dev); - if (bc->table_line) - kfree(bc->table_line); + kfree(bc->table_line); kfree(bc); }