https://github.com/torvalds/linux
Revision 9a767d43fbddb3319dca568df49c48e0d1bb6bd8 authored by Roel Kluin on 16 October 2009, 12:16:15 UTC, committed by Liam Girdwood on 16 November 2009, 09:57:17 UTC
If ret is unsigned, the checks for negative wm831x_reg_read() return values
are wrong. The error value should be transmitted to its caller, e.g.
wm831x_gp_ldo_get_status() which tests for a negative return value.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
1 parent 60ef66f
History
Tip revision: 9a767d43fbddb3319dca568df49c48e0d1bb6bd8 authored by Roel Kluin on 16 October 2009, 12:16:15 UTC
regulator: Fix check of unsigned return value and transmit errors in wm831x_gp_ldo_get_mode()
Tip revision: 9a767d4
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 952 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 156.0 KB
Makefile -rw-r--r-- 53.9 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top