Commit bc1c2f0a authored by John Garry's avatar John Garry Committed by Yu Kuai
Browse files

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: 752d0464 ("md: clean up accounting for issued sync IO")
Signed-off-by: default avatarJohn Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/linux-raid/20250709104814.2307276-1-john.g.garry@oracle.com


Signed-off-by: default avatarYu Kuai <yukuai@kernel.org>
parent c0ffeb64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment