mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Remove unused APIs qdf_nbuf_set_rx_info and qdf_nbuf_get_rx_info
Currently, the APIs qdf_nbuf_set_rx_info and qdf_nbuf_get_rx_info are no longer used in our driver code. Cleanup the unused code for qdf_nbuf_set_rx_info and qdf_nbuf_get_rx_info. Change-Id: I57acbd4e5901d8922e3b650f0f3b57f056a0ae3e CRs-Fixed: 2259212
This commit is contained in:
parent
8727ab68ff
commit
09089f1b73
2 changed files with 0 additions and 47 deletions
|
|
@ -2786,17 +2786,6 @@ static inline void qdf_nbuf_reset_ctxt(__qdf_nbuf_t nbuf)
|
|||
__qdf_nbuf_reset_ctxt(nbuf);
|
||||
}
|
||||
|
||||
static inline void
|
||||
qdf_nbuf_set_rx_info(__qdf_nbuf_t nbuf, void *info, uint32_t len)
|
||||
{
|
||||
__qdf_nbuf_set_rx_info(nbuf, info, len);
|
||||
}
|
||||
|
||||
static inline void *qdf_nbuf_get_rx_info(__qdf_nbuf_t nbuf)
|
||||
{
|
||||
return __qdf_nbuf_get_rx_info(nbuf);
|
||||
}
|
||||
|
||||
static inline void qdf_nbuf_init(qdf_nbuf_t buf)
|
||||
{
|
||||
__qdf_nbuf_init(buf);
|
||||
|
|
|
|||
|
|
@ -1649,42 +1649,6 @@ static inline size_t __qdf_nbuf_tcp_tso_size(struct sk_buff *skb)
|
|||
*/
|
||||
void __qdf_nbuf_init(__qdf_nbuf_t nbuf);
|
||||
|
||||
/**
|
||||
* __qdf_nbuf_set_rx_info() - set rx info
|
||||
* @nbuf: sk buffer
|
||||
* @info: rx info
|
||||
* @len: length
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
static inline void
|
||||
__qdf_nbuf_set_rx_info(__qdf_nbuf_t nbuf, void *info, uint32_t len)
|
||||
{
|
||||
/* Customer may have skb->cb size increased, e.g. to 96 bytes,
|
||||
* then len's large enough to save the rs status info struct
|
||||
*/
|
||||
uint8_t offset = sizeof(struct qdf_nbuf_cb);
|
||||
uint32_t max = sizeof(((struct sk_buff *)0)->cb)-offset;
|
||||
|
||||
len = (len > max ? max : len);
|
||||
|
||||
memcpy(((uint8_t *)(nbuf->cb) + offset), info, len);
|
||||
}
|
||||
|
||||
/**
|
||||
* __qdf_nbuf_get_rx_info() - get rx info
|
||||
* @nbuf: sk buffer
|
||||
*
|
||||
* Return: rx_info
|
||||
*/
|
||||
static inline void *
|
||||
__qdf_nbuf_get_rx_info(__qdf_nbuf_t nbuf)
|
||||
{
|
||||
uint8_t offset = sizeof(struct qdf_nbuf_cb);
|
||||
|
||||
return (void *)((uint8_t *)(nbuf->cb) + offset);
|
||||
}
|
||||
|
||||
/*
|
||||
* __qdf_nbuf_get_cb() - returns a pointer to skb->cb
|
||||
* @nbuf: sk buff
|
||||
|
|
|
|||
Loading…
Reference in a new issue