lkml.org 
[lkml]   [2013]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] atm: fore200e.c: fix uninitialized variable
Date
the variable err is uninitialized if all the macros in the function are
disabled.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
---
drivers/atm/fore200e.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
index 204814e..d4725fc 100644
--- a/drivers/atm/fore200e.c
+++ b/drivers/atm/fore200e.c
@@ -2780,7 +2780,7 @@ static struct pci_driver fore200e_pca_driver = {

static int __init fore200e_module_init(void)
{
- int err;
+ int err = 0;

printk(FORE200E "FORE Systems 200E-series ATM driver - version " FORE200E_VERSION "\n");

--
1.7.9.5


\
 
 \ /
  Last update: 2013-01-14 20:42    [W:0.170 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site