diff options
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | 2024-11-14 01:02:24 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-16 09:04:56 +0100 |
commit | 61440628a4ffe0639c4f69a6ffa46c3a0bead3d5 (patch) | |
tree | a5bc38fa7081fd3e106879fbf7c0bb86b0c96635 /drivers/platform/x86/intel/pmt/class.c | |
parent | b7fc65f5141c24785dc8c19249ca4efcf71b3524 (diff) | |
download | linux-61440628a4ffe0639c4f69a6ffa46c3a0bead3d5.tar.gz linux-61440628a4ffe0639c4f69a6ffa46c3a0bead3d5.tar.bz2 linux-61440628a4ffe0639c4f69a6ffa46c3a0bead3d5.zip |
usb: dwc3: gadget: Cleanup SG handling
The current logic in dwc3 driver is tracking req->num_queued_sgs and
req->sg. But they can be checked base on the num_pending_sgs and
num_trbs. They are redundant and can complicate the SG logic. Let's
remove them.
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/96c7bf8f6b3e91e607d5b78ea51cb1d00c614eaf.1731545781.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions