diff options
author | Martin Kaiser <martin@kaiser.cx> | 2021-06-05 18:58:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-09 14:20:04 +0200 |
commit | d3f3fb9810ac51b18088201c72583cd07cce0db6 (patch) | |
tree | dff68f9b7b53dd2991f5c28ca651a2cad7b4618f /drivers/pps | |
parent | b17aad8b567f47c029430486ba0c54a3abdbd4e3 (diff) |
staging: rtl8188eu: refactor rtw_lps_ctrl_wk_cmd
Allocate memory only if we're asked to enqueue the command for later
processing. Handle memory allocation failures in one place.
There's no need to "goto exit" if we're not doing any cleanup there.
kzalloc already set all of pdrvextra_cmd_parm to 0. We don't have
to set pdrvextra_cmd_parm->pbuf = NULL manually.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210605165858.3175-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pps')
0 files changed, 0 insertions, 0 deletions