diff options
| author | Yihao Han <[email protected]> | 2022-04-08 07:44:40 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-12 15:46:50 +0200 |
| commit | bab735aa5a49964e8b1ed337db9691e37b2ca821 (patch) | |
| tree | 700ddf1b0eaef61925c881c58ed13568245dd51f /tools/perf/scripts/python/syscall-counts.py | |
| parent | 908662dc823e5b19eb1efd8c3f2059499e8c8403 (diff) | |
staging: rtl8723bs: tidy up error handling
The check for if rtw_skb_alloc() fails is done twice and is written
in a confusing way. Move the "if (!recvbuf->pskb)" right after
the allocation. The "if (recvbuf->pskb)" check can now be deleted
and the code pulled in one tab.
Suggested-by: Dan Carpenter <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Yihao Han <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions