[PATCH] ppc32/64: Fix warning in pmac ide

From: Benjamin Herrenschmidt
Date: Fri Sep 24 2004 - 00:37:09 EST


Hi !

This is a gcc error, but let's fix it anyway, it isn't a perf critical
codepath and warnings are ugly.

Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>


diff -urN linux-2.5/drivers/ide/ppc/pmac.c linux-lappy/drivers/ide/ppc/pmac.c
--- linux-2.5/drivers/ide/ppc/pmac.c 2004-09-24 14:33:57.000000000 +1000
+++ linux-lappy/drivers/ide/ppc/pmac.c 2004-09-24 14:46:20.000000000 +1000
@@ -792,7 +792,7 @@
set_timings_mdma(ide_drive_t *drive, int intf_type, u32 *timings, u32 *timings2,
u8 speed, int drive_cycle_time)
{
- int cycleTime, accessTime, recTime;
+ int cycleTime, accessTime = 0, recTime = 0;
unsigned accessTicks, recTicks;
struct mdma_timings_t* tm = NULL;
int i;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/