diff options
| author | Arnd Bergmann <[email protected]> | 2016-11-08 15:00:49 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-11-08 20:22:32 +0000 |
| commit | 6826fdbd2e207f8107e65c5a372ac616e7af11b4 (patch) | |
| tree | b56a9fae8d33549e5d85f08dd4fa658dea5791ca /tools/perf/scripts/python | |
| parent | 993403b9798123db4eb9d9bba1ab41f388dc1ea1 (diff) | |
staging: iio: ad9832: allocate data before using
The regulator changes assigned data to an uninitialized pointer:
drivers/staging/iio/frequency/ad9832.c: In function 'ad9832_probe':
drivers/staging/iio/frequency/ad9832.c:214:11: error: 'st' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This moves the allocation of the 'st' structure before its first
use, as it should have been.
Fixes: 43a07e48af44 ("staging: iio: ad9832: clean-up regulator 'reg'")
Fixes: a98461d79ba5 ("staging: iio: ad9832: add DVDD regulator")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions