diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2024-10-03 12:01:30 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2024-12-08 15:58:55 +0300 |
commit | ed33fbb5d5536db77bd168e8fefde8dbc077cfd7 (patch) | |
tree | 98f4b156cc2a44c19cc1818093a8fbb2edc2d1e5 /scripts/extract-fwblobs | |
parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) | |
download | linux-ed33fbb5d5536db77bd168e8fefde8dbc077cfd7.tar.xz |
PM / devfreq: event: Call of_node_put() only once in devfreq_event_get_edev_by_phandle()
An of_node_put(node) call was immediately used after a null pointer check
for the local variable “edev” at the end of this function implementation.
Thus call such a function only once instead directly before the check.
This issue was transformed by using the Coccinelle software.
Link: https://lore.kernel.org/lkml/0f103384-376c-41f0-a35c-8ad98327d6cb@web.de/
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions