md: remvoe redundant condition check
authorChengguang Xu <cgxu519@gmx.com>
Tue, 13 Nov 2018 23:33:09 +0000 (07:33 +0800)
committerShaohua Li <shli@fb.com>
Thu, 20 Dec 2018 16:53:24 +0000 (08:53 -0800)
commit37b22c28946046e587c12b2b5bdaba7062e23f75
treea56b3806721628ea989eb9ab7a07fc01a0a18319
parentbe85f93ae2df32dea0b20908316f1d894c3e0f64
md: remvoe redundant condition check

mempool_destroy() can handle NULL pointer correctly,
so there is no need to check NULL pointer before calling
mempool_destroy().

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c