Commit bc1c2f0
md/raid10: fix set but not used variable in sync_request_write()
Building with W=1 reports the following:
drivers/md/raid10.c: In function ‘sync_request_write’:
drivers/md/raid10.c:2441:21: error: variable ‘d’ set but not used [-Werror=unused-but-set-variable]
2441 | int d;
| ^
cc1: all warnings being treated as errors
Remove the usage of that variable.
Fixes: 752d046 ("md: clean up accounting for issued sync IO")
Signed-off-by: John Garry <[email protected]>
Link: https://lore.kernel.org/linux-raid/[email protected]
Signed-off-by: Yu Kuai <[email protected]>1 parent c0ffeb6 commit bc1c2f0
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
2441 | | - | |
2442 | | - | |
2443 | 2441 | | |
2444 | 2442 | | |
2445 | 2443 | | |
2446 | 2444 | | |
2447 | 2445 | | |
2448 | 2446 | | |
2449 | | - | |
2450 | 2447 | | |
2451 | 2448 | | |
2452 | 2449 | | |
| |||
0 commit comments