usb: f_qdss: Remove usb_request::num_mapped_sgs access

The function drivers have no business accessing usb_request::num_mapped_sgs
field. The UDC will use this field to cache the sgs mapped for a given
request.

Change-Id: I6a8c8c2e52a36caedfe977f517b4c04b1ad0045c
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
This commit is contained in:
Pavankumar Kondeti 2021-12-22 09:59:43 +05:30 • committed by Gerrit - the friendly Code Review server
commit ea6dfe28c6
2 changed files with 0 additions and 2 deletions

View file

@ -811,7 +811,6 @@ int usb_qdss_write(struct usb_qdss_ch *ch, struct qdss_request *d_req)
req->length = d_req->length;
req->sg = d_req->sg;
req->num_sgs = d_req->num_sgs;
req->num_mapped_sgs = d_req->num_mapped_sgs;
reinit_completion(&qreq->write_done);
if (req->sg)
qdss_log("%s: req:%pK req->num_sgs:0x%x\n",

View file

@ -21,7 +21,6 @@ struct qdss_request {
void *context;
struct scatterlist *sg;
unsigned int num_sgs;
unsigned int num_mapped_sgs;
};
struct usb_qdss_ch {