Search Linux Wireless

Re: [RFC 05/12] mt76usb: remove mt76u_buf redundant fileds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 12, 2019 at 05:25:50PM +0100, Lorenzo Bianconi wrote:
> >  	buf = &q->entry[idx].ubuf;
> > -	buf->buf = skb->data;
> > -	buf->len = skb->len;
> > +	if (!dev->usb.sg_en) {
> > +		buf->urb->transfer_buffer = skb->data;
> 
> I think you can move this in mt76u_tx_build_sg or remove the if condition in
> mt76u_tx_build_sg()

I'll rename mt76u_tx_build_sg() to mt76u_tx_setup_bufffers() then,
which will more corresponding the what the function do.

Stanislaw



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux