diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-11-19 10:08:14 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:52:24 -0800 |
commit | 246c541822cd6251aa38862f8f13412e5147a1ad (patch) | |
tree | bc12fc6e9f630871d925f6984aac7f5d282e12cb | |
parent | ff534766e4b9e25e6e4a1f133946dfa8cfe6a747 (diff) | |
download | op-kernel-dev-246c541822cd6251aa38862f8f13412e5147a1ad.zip op-kernel-dev-246c541822cd6251aa38862f8f13412e5147a1ad.tar.gz |
Staging: comedi: fix sparse issues in comedi_bond.c
This fixes the issues raised by the sparse tool on the
comedi_bond.c file.
Cc: Calin A. Culianu <calin@ajvar.org>
Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/comedi_bond.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_bond.c b/drivers/staging/comedi/drivers/comedi_bond.c index 4ded9b1..9e5496f 100644 --- a/drivers/staging/comedi/drivers/comedi_bond.c +++ b/drivers/staging/comedi/drivers/comedi_bond.c @@ -103,7 +103,7 @@ MODULE_LICENSE("GPL"); # define STR(x) STR1(x) #endif -int debug; +static int debug; module_param(debug, int, 0644); MODULE_PARM_DESC(debug, "If true, print extra cryptic debugging output useful" "only to developers."); @@ -408,7 +408,7 @@ static int doDevConfig(comedi_device *dev, comedi_devconfig *it) int minor = it->options[i]; comedi_t *d; int sdev = -1, nchans, tmp; - struct BondedDevice *bdev = 0; + struct BondedDevice *bdev = NULL; if (minor < 0 || minor > COMEDI_NUM_BOARD_MINORS) { ERROR("Minor %d is invalid!\n", minor); @@ -515,18 +515,18 @@ static void doDevUnconfig(comedi_device *dev) kfree(bdev); } kfree(devpriv->devs); - devpriv->devs = 0; + devpriv->devs = NULL; kfree(devpriv); - dev->private = 0; + dev->private = NULL; } } -int __init init(void) +static int __init init(void) { return comedi_driver_register(&driver_bonding); } -void __exit cleanup(void) +static void __exit cleanup(void) { comedi_driver_unregister(&driver_bonding); } |