projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c10f810
)
iio:cdc:ad7150: Fix use of uninitialized ret
author
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Tue, 6 Apr 2021 08:23:37 +0000
(09:23 +0100)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Wed, 7 Apr 2021 07:36:39 +0000
(08:36 +0100)
This doesn't appear to generate a warning on all versions of GCC, but
0-day reported it and the report looks valid.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/cdc/ad7150.c
patch
|
blob
|
history
diff --git
a/drivers/iio/cdc/ad7150.c
b/drivers/iio/cdc/ad7150.c
index
f9cce1a
..
ebe112b
100644
(file)
--- a/
drivers/iio/cdc/ad7150.c
+++ b/
drivers/iio/cdc/ad7150.c
@@
-235,7
+235,7
@@
static int ad7150_write_event_config(struct iio_dev *indio_dev,
enum iio_event_direction dir, int state)
{
struct ad7150_chip_info *chip = iio_priv(indio_dev);
- int ret;
+ int ret
= 0
;
/*
* There is only a single shared control and no on chip