lkml.org 
[lkml]   [2004]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] ppc32/64: Fix warning in pmac ide
From
Date
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;

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

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.034 / U:1.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site