mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ppc32/64: Fix warning in pmac ide
@ 2004-09-24  5:35 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-09-24  5:35 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list

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@kernel.crashing.org>


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;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-24  5:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-24  5:35 [PATCH] ppc32/64: Fix warning in pmac ide Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®