Unverified Commit 7368e9f4 authored by Markus Elfring's avatar Markus Elfring Committed by Mark Brown
Browse files

regulator: Call of_node_put() only once in rzg2l_usb_vbus_regulator_probe()



An of_node_put(config.of_node) call was immediately used after a pointer
check for a devm_regulator_register() call in this function implementation.
Thus call such a function only once instead directly before the check.

This issue was transformed by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Link: https://patch.msgid.link/f9d7a026-a67a-4164-80f4-578b1fbf71ac@web.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f4e06afb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment