diff options
| author | Axel Lin <axel.lin@ingics.com> | 2013-01-10 10:33:06 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-10 12:56:57 +0000 |
| commit | eb758de6a00f2c1f5694efc503b94d162db99734 (patch) | |
| tree | 713aa1ab67940f56fafeba72e66cea2a5b3058d6 /tools/perf/ui/gtk/annotate.c | |
| parent | b9bb09111a4f5dbf8a0bd7df77ec79d3fdf9e5d2 (diff) | |
regulator: lp8788-buck: Silence build warning
This driver use id as array index, thus add bounder checking for id.
This patch fixes below build warning:
drivers/regulator/lp8788-buck.c: In function 'lp8788_buck_probe':
drivers/regulator/lp8788-buck.c:490:8: warning: array subscript is above array bounds [-Warray-bounds]
drivers/regulator/lp8788-buck.c:489:63: warning: array subscript is above array bounds [-Warray-bounds]
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'tools/perf/ui/gtk/annotate.c')
0 files changed, 0 insertions, 0 deletions
