]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid1: remove impossible mempool_alloc error test
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 21 Dec 2012 20:23:32 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:32 +0000 (20:23 +0000)
commit463688961dc2f5f77f539adc0ded689fa7b8d655
tree2500a6e11d141c83bf6f22df62b93cc015a9ea99
parent2f11a6d478bc77ba69e326e2d2eea45b43b8daf2
dm raid1: remove impossible mempool_alloc error test

mempool_alloc can't fail if __GFP_WAIT is specified, so the condition
that tests if read_record is non-NULL is always true.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c