aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2019-11-20 15:59:26 +0100
committerPhilipp Zabel <[email protected]>2019-12-10 11:43:37 +0100
commitdb23808615e29d9a04f96806cac56f78b0fee0ef (patch)
tree1f281ab2c820c26fe28a1f50bb90ec7560052bd2 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent723c0011c7f6992f57e2c629fa9c89141acc115f (diff)
reset: Do not register resource data for missing resets
When an optional reset is not present, __devm_reset_control_get() and devm_reset_control_array_get() still register resource data to release the non-existing reset on cleanup, which is futile. Fix this by skipping NULL reset control pointers. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions