mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
usb: gadget: f_tcm: Minor cleanup redundant code
The status request preparation is done in uasp_prepare_status(). Remove duplicate code. No functional change here. Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/2b2200a9022296f520e26f61ed6aaa6eb34d466f.1733876548.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
70fda9e6da
commit
360715d567
1 changed files with 0 additions and 2 deletions
|
|
@ -602,8 +602,6 @@ static int uasp_send_status_response(struct usbg_cmd *cmd)
|
|||
struct sense_iu *iu = &cmd->sense_iu;
|
||||
|
||||
iu->tag = cpu_to_be16(cmd->tag);
|
||||
stream->req_status->complete = uasp_status_data_cmpl;
|
||||
stream->req_status->context = cmd;
|
||||
cmd->fu = fu;
|
||||
uasp_prepare_status(cmd);
|
||||
return usb_ep_queue(fu->ep_status, stream->req_status, GFP_ATOMIC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue