summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2022-11-02 03:36:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-02 10:31:43 +0300
commita37068715956111af1d49105d9e41b4cc8f69ea0 (patch)
treec33a0469acd7d747357f89af505b326358b80fd1 /drivers/staging/vt6655
parentd911a624cfb40e356b98f135d52914b30214fd7f (diff)
downloadlinux-a37068715956111af1d49105d9e41b4cc8f69ea0.tar.xz
staging: r8188eu: convert rtw_setdatarate_cmd to correct error semantics
Convert rtw_setdatarate_cmd function to use proper error return codes rather than _SUCCESS and _FAIL, and a simpler 'return 0;' style. For now, wrap rtw_enqueue_cmd call and return -EPERM if it fails, as converting this function makes more sense later on due to its large number of callers. Also change rtw_wx_set_rate function to pass through the proper error code rather than just 0 or -1. Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Link: https://lore.kernel.org/r/20221102003613.971-1-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655')
0 files changed, 0 insertions, 0 deletions