diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-22 16:49:48 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-22 20:30:45 -0500 |
commit | 6a6bbd29a0284c1b9d33c324ba85f3ebb5509589 (patch) | |
tree | d331ca12cc67571ac9e1b2a5c26e284bd874a276 /drivers/net | |
parent | 5185c7c20a4b88892f868ad8d92d1b640b1edba9 (diff) |
[PATCH] Use of uninitialized variable in drivers/net/depca.c
hi,
this fixes coverity bug #888, where the variable
dev is used uninitialized. I assume the programmer
meant to use mdev, which is initialized.
Compile tested only.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/depca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/depca.c b/drivers/net/depca.c index 03804cc38be0..0941d40f046f 100644 --- a/drivers/net/depca.c +++ b/drivers/net/depca.c | |||
@@ -1412,7 +1412,7 @@ static int __init depca_mca_probe(struct device *device) | |||
1412 | irq = 11; | 1412 | irq = 11; |
1413 | break; | 1413 | break; |
1414 | default: | 1414 | default: |
1415 | printk("%s: mca_probe IRQ error. You should never get here (%d).\n", dev->name, where); | 1415 | printk("%s: mca_probe IRQ error. You should never get here (%d).\n", mdev->name, where); |
1416 | return -EINVAL; | 1416 | return -EINVAL; |
1417 | } | 1417 | } |
1418 | 1418 | ||