Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b577004d authored by David Collins's avatar David Collins
Browse files

regulator: cpr-regulator: remove unnecessary pointer checks in callbacks



Remove cpr_vreg pointer NULL checks in cpr-regulator debugfs
callback functions.  The cpr_vreg pointer is guaranteed to be
valid in these callback functions so there is no need to check
it.  Additionally, the print statements inside of the NULL checks
where incorrectly referencing cpr_vreg after it was known to be
NULL.

Change-Id: Id2efd9f28f97ce448fd86f03922ca2cfd63173a8
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent c57e2816
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment