md/raid1: remove unnecessary null checking
authorGou Hao <gouhao@uniontech.com>
Thu, 14 Dec 2023 15:14:58 +0000 (23:14 +0800)
committerSong Liu <song@kernel.org>
Fri, 15 Dec 2023 08:45:37 +0000 (00:45 -0800)
commitaf140f806ae2679f9dba48ea0f5811da83854eb6
tree234d05d7b498671dbb3ed1d4c7d159a6ef02dec3
parentfa2bbff7b0b4e211fec5e5686ef96350690597b5
md/raid1: remove unnecessary null checking

If %__GFP_DIRECT_RECLAIM is set then bio_alloc_bioset will always
be able to allocate a bio. See comment of bio_alloc_bioset.

Signed-off-by: Gou Hao <gouhao@uniontech.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231214151458.28970-1-gouhao@uniontech.com
drivers/md/raid1.c