aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-11-29 18:06:26 +0200
committerLinus Walleij <[email protected]>2023-12-01 15:00:10 +0100
commitc82c03819b92df0e6472d4c3424e9fd614dde8ad (patch)
tree48da5a10a20b31577d2cc0a084f626a2404c1b43 /net/lapb/lapb_subr.c
parent9e863d276876e085910f33b1b45d4bc8125e179a (diff)
pinctrl: equilibrium: Unshadow error code of of_property_count_u32_elems()
of_property_count_u32_elems() might return an error code in some cases. It's naturally better to assign what it's returned to the err variable and supply the real code to the upper layer(s). Besides that, it's a common practice to avoid assignments for the data in cases when we know that the error condition happened. Refactor the code accordingly. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions