aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPhillip Potter <[email protected]>2022-08-03 00:44:08 +0100
committerGreg Kroah-Hartman <[email protected]>2022-08-16 15:15:23 +0200
commitbf86e27416d43942a465051c7e2040462bdc734b (patch)
tree3b3be52c7a371bcfb0e0c22865f91eedbbbf5b76 /tools/perf/scripts/python
parent867d7145374a61b51eb0667c04f9abc2b5942007 (diff)
staging: r8188eu: convert rtw_p2p_enable to correct error code semantics
Convert the rtw_p2p_enable function to use correct error code semantics rather than _SUCCESS/_FAIL, and also make sure we allow these to be passed through properly in the one caller where we actually check the code, rtw_wext_p2p_enable. This change moves these functions to a clearer 'return 0;' style at the end of the function, and in the case of errors now returns ret instead of jumping to the end of the function, so that these can still be passed through but without using a goto to jump to a single return statement at the end which is less clear. This change moves the driver slowly closer to using standard error code semantics everywhere. Tested-by: Philipp Hortmann <[email protected]> # Edimax N150 Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Phillip Potter <[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')
0 files changed, 0 insertions, 0 deletions