diff options
| author | Zijun Hu <quic_zijuhu@quicinc.com> | 2024-12-12 18:30:05 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-23 20:40:34 +0300 |
| commit | e9509b499349965ee866aae8eea85e909d798c11 (patch) | |
| tree | 44038f5509b5ab4e08e0fccf465be18fcc8a03d4 /scripts/decode_stacktrace.sh | |
| parent | 31d500c2d0d4f71d9555b39951c02c1561d3ae55 (diff) | |
| download | linux-e9509b499349965ee866aae8eea85e909d798c11.tar.xz | |
USB: Optimize goto logic in API usb_register_driver()
usb_register_driver() uses complex goto statements to handle simple error
cases, move down the goto label 'out' a bit to
- Simplify goto logic
- Leverage pr_err() prompt for driver registering failure.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20241212-fix_usb-v1-1-300eb440c753@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/decode_stacktrace.sh')
0 files changed, 0 insertions, 0 deletions
