Fixes the following W=1 kernel build warning: drivers/ide/piix.c: In function ‘piix_set_dma_mode’: drivers/ide/piix.c:146:8: warning: variable ‘sitre’ set but not used [-Wunused-but-set-variable]
Fixes: 2bfba3c444fe ("ide: remove useless subdirs from drivers/ide/") Reported-by: Hulk Robot <hul...@huawei.com> Signed-off-by: Zhen Lei <thunder.leiz...@huawei.com> --- drivers/ide/piix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ide/piix.c b/drivers/ide/piix.c index a671cead6ae72b7..b512d2dc9108cf6 100644 --- a/drivers/ide/piix.c +++ b/drivers/ide/piix.c @@ -143,13 +143,11 @@ static void piix_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) int v_flag = 0x01 << drive->dn; int w_flag = 0x10 << drive->dn; int u_speed = 0; - int sitre; u16 reg4042, reg4a; u8 reg48, reg54, reg55; const u8 speed = drive->dma_mode; pci_read_config_word(dev, maslave, ®4042); - sitre = (reg4042 & 0x4000) ? 1 : 0; pci_read_config_byte(dev, 0x48, ®48); pci_read_config_word(dev, 0x4a, ®4a); pci_read_config_byte(dev, 0x54, ®54); -- 1.8.3