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

From: libaokun (A)
Date: Tue Jun 15 2021 - 21:06:10 EST


Thank you for your reminder.

Best Regards.


在 2021/6/16 5:45, Jens Axboe 写道:
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.