From: Andrew Morton Date: Wed, 6 Feb 2008 09:38:31 +0000 (-0800) Subject: drivers/isdn/hardware/eicon/debug.c: fix uninitialized var warning X-Git-Tag: v2.6.25-rc1~635 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=162c0d91a365d501c6cc65cba451f2d855e8ee81;p=linux-2.6-omap-h63xx.git drivers/isdn/hardware/eicon/debug.c: fix uninitialized var warning drivers/isdn/hardware/eicon/debug.c: In function 'SuperTraceASSIGN': drivers/isdn/hardware/eicon/debug.c:1191: warning: 'rx_dma_magic' may be used uninitialized in this function Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/isdn/hardware/eicon/debug.c b/drivers/isdn/hardware/eicon/debug.c index 0db9cc661e2..84318ec8d13 100644 --- a/drivers/isdn/hardware/eicon/debug.c +++ b/drivers/isdn/hardware/eicon/debug.c @@ -1188,7 +1188,7 @@ int SuperTraceASSIGN (void* AdapterHandle, byte* data) { if ((features[0] & DIVA_XDI_EXTENDED_FEATURES_VALID) && (features[0] & DIVA_XDI_EXTENDED_FEATURE_MANAGEMENT_DMA)) { - dword rx_dma_magic; + dword uninitialized_var(rx_dma_magic); if ((pC->dma_handle = diva_get_dma_descriptor (pC->request, &rx_dma_magic)) >= 0) { pC->xbuffer[0] = LLI; pC->xbuffer[1] = 8;