From: Adrian Bunk Date: Fri, 19 Oct 2007 22:32:29 +0000 (+0200) Subject: ide/pci/sis5513.c: add missing "else" X-Git-Tag: v2.6.24-rc1~128^2~49 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dfd6433ff4d037262a4b8bede022e1d4bac06e3;p=linux-2.6 ide/pci/sis5513.c: add missing "else" This patch adds a missing "else" that was missing in commit c77a89cd98d99819f23a4a08e5e17ee1f13f6e4d. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk Cc: Sergei Shtylyov , Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c index c1d280b063..1680926acf 100644 --- a/drivers/ide/pci/sis5513.c +++ b/drivers/ide/pci/sis5513.c @@ -264,7 +264,7 @@ static void sis_ata133_program_timings(ide_drive_t *drive, const u8 mode) if (mode >= XFER_MW_DMA_0) { t1 &= ~0x04; /* disable UDMA */ idx = mode - XFER_MW_DMA_0 + 5; - } + } else idx = mode - XFER_PIO_0; t1 |= ini_time_value[clk][idx] << 12; t1 |= act_time_value[clk][idx] << 16;