diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2022-03-02 20:25:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-03 10:43:37 +0000 |
commit | 4dbbf673f7d711e3f26396c43cbd391dc8f6c354 (patch) | |
tree | f5a88b6d43bf7242593cfd2eb3857c173cd81c23 /drivers/net/xen-netback/netback.c | |
parent | ec10fd154d934cc4195da3cbd017a12817b41d51 (diff) |
nfc: llcp: use centralized exiting of bind on errors
Coding style encourages centralized exiting of functions, so rewrite
llcp_sock_bind() error paths to use such pattern. This reduces the
duplicated cleanup code, make success path visually shorter and also
cleans up the errors in proper order (in reversed way from
initialization).
No functional impact expected.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/netback.c')
0 files changed, 0 insertions, 0 deletions