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

Commit 93576842 authored by Viresh Kumar's avatar Viresh Kumar Committed by Mark Brown
Browse files

regulator: core: Use IS_ERR_OR_NULL()



Use IS_ERR_OR_NULL() rather than open coding it.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d3fb9800
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1588,7 +1588,7 @@ static void _regulator_put(struct regulator *regulator)
{
	struct regulator_dev *rdev;

	if (regulator == NULL || IS_ERR(regulator))
	if (IS_ERR_OR_NULL(regulator))
		return;

	lockdep_assert_held_once(&regulator_list_mutex);