mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 01:25:39 +01:00
staging: r8188eu: make _rtw_open_pktfile() static
The function _rtw_open_pktfile() is only used in rtw_xmit.c. Make it static. Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20220820181623.12497-9-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
37fe999626
commit
2ae2664fe8
|
|
@ -402,6 +402,25 @@ u8 qos_acm(u8 acm_mask, u8 priority)
|
|||
return change_priority;
|
||||
}
|
||||
|
||||
static void _rtw_open_pktfile(struct sk_buff *pktptr, struct pkt_file *pfile)
|
||||
{
|
||||
if (!pktptr) {
|
||||
pr_err("8188eu: pktptr is NULL\n");
|
||||
return;
|
||||
}
|
||||
if (!pfile) {
|
||||
pr_err("8188eu: pfile is NULL\n");
|
||||
return;
|
||||
}
|
||||
pfile->pkt = pktptr;
|
||||
pfile->cur_addr = pktptr->data;
|
||||
pfile->buf_start = pktptr->data;
|
||||
pfile->pkt_len = pktptr->len;
|
||||
pfile->buf_len = pktptr->len;
|
||||
|
||||
pfile->cur_buffer = pfile->buf_start;
|
||||
}
|
||||
|
||||
static void set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib)
|
||||
{
|
||||
struct ethhdr etherhdr;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ struct xmit_buf;
|
|||
|
||||
int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);
|
||||
|
||||
void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
|
||||
uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
|
||||
|
||||
void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt);
|
||||
|
|
|
|||
|
|
@ -17,27 +17,6 @@ static uint rtw_remainder_len(struct pkt_file *pfile)
|
|||
(size_t)(pfile->buf_start));
|
||||
}
|
||||
|
||||
void _rtw_open_pktfile(struct sk_buff *pktptr, struct pkt_file *pfile)
|
||||
{
|
||||
|
||||
if (!pktptr) {
|
||||
pr_err("8188eu: pktptr is NULL\n");
|
||||
return;
|
||||
}
|
||||
if (!pfile) {
|
||||
pr_err("8188eu: pfile is NULL\n");
|
||||
return;
|
||||
}
|
||||
pfile->pkt = pktptr;
|
||||
pfile->cur_addr = pktptr->data;
|
||||
pfile->buf_start = pktptr->data;
|
||||
pfile->pkt_len = pktptr->len;
|
||||
pfile->buf_len = pktptr->len;
|
||||
|
||||
pfile->cur_buffer = pfile->buf_start;
|
||||
|
||||
}
|
||||
|
||||
uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen)
|
||||
{
|
||||
uint len = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user