md: merge the check of capabilities into md_ioctl_valid()
authorLi Nan <linan122@huawei.com>
Mon, 26 Feb 2024 03:14:36 +0000 (11:14 +0800)
committerSong Liu <song@kernel.org>
Mon, 26 Feb 2024 18:22:22 +0000 (10:22 -0800)
commit2fe4ffc3ecdcb69d0e5aded5abf5367e3519bd04
tree540e4668242e7c56cda5bf44f4023b33a4589e30
parent82c6515d8a970f471eeb8a5ceeaa04c3e5e1b45c
md: merge the check of capabilities into md_ioctl_valid()

There is no functional change. Just to make code cleaner.

Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240226031444.3606764-2-linan666@huaweicloud.com
drivers/md/md.c