diff options
| author | 2009-04-14 03:04:47 +0200 | |
|---|---|---|
| committer | 2009-04-28 18:58:07 +0100 | |
| commit | cd78dfc6c6e321a310a73ef7b0df3d262704dd55 (patch) | |
| tree | 9b54c41207160b04946a7984dfc863167afc1b1b /include/linux/debugobjects.h | |
| parent | unreachable code in drms_uA_update() (diff) | |
drivers/regulator: fix when type is different from REGULATOR_VOLTAGE or REGULATOR_CURRENT
When regulator_desc->type is something different from REGULATOR_VOLTAGE or REGULATOR_CURRENT
the if should probably return ERR_PTR(-EINVAL)
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
@@ expression E; constant C; @@
(
- !E == C
+ E != C
)
Signed-off-by: Diego Liziero <diegoliz@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
