md/raid10: fix set but not used variable in sync_request_write()
authorJohn Garry <john.g.garry@oracle.com>
Wed, 9 Jul 2025 10:48:14 +0000 (10:48 +0000)
committerYu Kuai <yukuai3@huawei.com>
Wed, 16 Jul 2025 16:02:05 +0000 (00:02 +0800)
commitbc1c2f0ae355f7e30b5baecdfb89d2b148aa0515
treea80f004ea2098e6b3776f575cbfb600b7a069183
parentc0ffeb648000acdc932da7a9d33fd65e9263c54c
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: 752d0464b78a ("md: clean up accounting for issued sync IO")
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/linux-raid/20250709104814.2307276-1-john.g.garry@oracle.com
Signed-off-by: Yu Kuai <yukuai@kernel.org>
drivers/md/raid10.c