summaryrefslogtreecommitdiff
path: root/drivers/iio/chemical
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-08-25 06:16:17 +0300
committerSong Liu <song@kernel.org>2023-09-22 20:28:25 +0300
commit897c62a1cae6485870a45934b22c180016a0570f (patch)
tree68614abfca95cf5d9fa346e312d26691b38b796f /drivers/iio/chemical
parentac619781967bd5663c29606246b50dbebd8b3473 (diff)
downloadlinux-897c62a1cae6485870a45934b22c180016a0570f.tar.xz
md: factor out a helper to choose sync action from md_check_recovery()
There are no functional changes, on the one hand make the code cleaner, on the other hand prevent following checkpatch error in the next patch to delay choosing sync action to md_start_sync(). ERROR: do not use assignment in if condition + } else if ((spares = remove_and_add_spares(mddev, NULL))) { Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Xiao Ni <xni@redhat.com> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20230825031622.1530464-3-yukuai1@huaweicloud.com
Diffstat (limited to 'drivers/iio/chemical')
0 files changed, 0 insertions, 0 deletions