aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2024-08-01 21:30:08 +0800
committerSong Liu <[email protected]>2024-08-27 10:08:22 -0700
commit2d389a759d02fa30bd686c797ad620b1da9d1320 (patch)
tree5a1137c8e7b19d9c59eca7d37711e968a2847d43 /lib/netdev-notifier-error-inject.c
parent86ad4cda79e0dade87d4bb0d32e1fe541d4a63e8 (diff)
md/raid1: Clean up local variable 'b' from raid1_read_request()
The local variable will only be used onced, in the error path that read_balance() failed to find a valid rdev to read. Since now the rdev is ensured can't be removed from conf while IO is still pending, remove the local variable and dereference rdev directly. Since we're here, also remove an extra empty line, and unnecessary type conversion from sector_t(u64) to unsigned long long. Signed-off-by: Yu Kuai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions