Staging: iio: dereferencing uninitialized variable
authorDan Carpenter <error27@gmail.com>
Wed, 8 Jun 2011 06:42:21 +0000 (09:42 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:48:13 +0000 (14:48 -0700)
commitf88af7e7d338e067eff0c2b9e317da97488ff74c
tree043bf04188a165a252bf1c924efe2a43846c0ada
parent7959a7c477b5dd284bb424c9cfbf917ae1664272
Staging: iio: dereferencing uninitialized variable

In the error handling, it dereferences "st" before it has been
initialized.  I also just tidied it up a bit to remove some extra
conditions.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/max1363_core.c