Re: [PATCH -next] ide-cd: fix warning: variable 'stat' set but not used

From: Jens Axboe
Date: Tue Jun 15 2021 - 17:45:39 EST


On 5/29/21 12:17 AM, Baokun Li wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/ide/ide-cd_ioctl.c: In function 'ide_cdrom_select_speed':
> drivers/ide/ide-cd_ioctl.c:212:6: warning:
> variable ‘stat’ set but not used [-Wunused-but-set-variable]
>
> It never used since introduction.

This code is being removed shortly, so better to just leave it alone.

--
Jens Axboe