From: Dan Carpenter Date: Fri, 8 Jun 2012 06:54:32 +0000 (+0300) Subject: iio: frequency: adf4350: using an uninitialized variable X-Git-Tag: v3.6-rc1~100^2~814 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a135d1ab5e3122ab2a50cbbdb9cb1504c1f421f;p=pandora-kernel.git iio: frequency: adf4350: using an uninitialized variable GCC complains that we use an uninitialized variable if the user passes an invalid parameter to adf4350_read(). I decided that we should return -EINVAL instead in that case. However, when I looked up at adf4350_write() it returned -ENODEV for that condition. In the end, I decided the -EINVAL was the right thing and I change adf4350_write() to match. Signed-off-by: Dan Carpenter Acked-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed