summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@codeconstruct.com.au>2025-06-16 22:43:46 +0930
committerAndrew Jeffery <andrew@codeconstruct.com.au>2025-07-08 11:35:07 +0930
commit4483e3c481bd2d026813434f3cd93381386cd1fa (patch)
treededaab3e04a015bcfdf1e4b61854d53816fd9b0e /net/lapb/lapb_out.c
parentfa4ffb06d8e4c243ca1073d321068ee8ab384b4b (diff)
soc: aspeed: lpc-snoop: Consolidate channel initialisation
Previously, channel initialisation was a bit perilous with respect to resource cleanup in error paths. While the implementation had issues, it at least made an effort to eliminate some of its problems by first testing whether any channels were enabled, and bailing out if not. Having improved the robustness of resource handling in probe() we can now rearrange the initial channel test to be located with the subsequent test, and rework the unrolled conditional logic to use a loop for an improvement in readability. Link: https://patch.msgid.link/20250616-aspeed-lpc-snoop-fixes-v2-9-3cdd59c934d3@codeconstruct.com.au Acked-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions