mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 23:25:54 +00:00
0c717d0f9c
We are currently required to do two checks for regulator pointer:
IS_ERR() and IS_NULL().
And multiple instances are reported, about both of these not being used
consistently and so resulting in crashes.
Fix that by initializing regulator pointer with an error value and
checking it only against an error.
This makes code more consistent and more efficient.
Fixes:
|
||
---|---|---|
.. | ||
core.c | ||
cpu.c | ||
debugfs.c | ||
Makefile | ||
opp.h |