diff options
| author | Andrzej Hajda <a.hajda@samsung.com> | 2015-12-30 12:18:42 +0100 |
|---|---|---|
| committer | Alex Shi <alex.shi@linaro.org> | 2016-04-08 11:47:07 +0800 |
| commit | 2c7296a879c7957ef8bfda8b21c3da432eeedf5d (patch) | |
| tree | 134f6a3ecd2a23cf9020ef3f0b30426af2672cc6 /include/linux/mmdebug.h | |
| parent | 5b1a8eb56e49d9bbf9075551804432a7b3b635a7 (diff) | |
cpufreq-dt: fix handling regulator_get_voltage() result
The function can return negative values so it should be assigned
to signed type.
The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci.
Link: http://permalink.gmane.org/gmane.linux.kernel/2038576
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 929ca89c305a6ed7a4149115be99af6d73c36918)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'include/linux/mmdebug.h')
0 files changed, 0 insertions, 0 deletions
