Remove compile warning from drivers/ide/pci/cs5520.c
PATCH 1/1 Remove compile warning from drivers/ide/pci/cs5520.c
The function, cs5520_tune_chipset() is declared to return an int. Added a return statement instead of just falling of off the bottom.
drivers/ide/pci/cs5520.c +2 -0
@@ -166,6 +166,8 @@/* ATAPI is harder so leave it for now */ if (!error && drive->media == ide_disk) error = hwif->ide_dma_on (drive); + +return error; }static void cs5520_tune_drive (ide_drive_t *drive,u8 pio)
Signature · 2 lines
Bob Miller Email: [email protected] Open Source Development Lab Phone: 503.626.2455 Ext. 17
drivers/ide/pci/cs5520.c line 170
Quoted 12 lines · Bob Miller
The function,
cs5520_tune_chipset()is declared to return an int. Added a return statement instead of just falling of off the bottom.diff -Nru
a/drivers/ide/pci/cs5520.cb/drivers/ide/pci/cs5520.cdrivers/ide/pci/cs5520.c +2
-0@@ -166,6 +166,8 @@/* ATAPI is harder so leave it for now */ if (!error && drive->media == ide_disk) error = hwif->ide_dma_on (drive); + +return error;
Eep thats a nasty little bug, lucky my compiler left the error value in %eax anyway good spotting