mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
[NETLINK]: Use nlmsg_trim() where appropriate
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a36ca73337
commit
dc5fc579b9
34 changed files with 93 additions and 62 deletions
|
|
@ -548,7 +548,7 @@ static inline void *nlmsg_get_pos(struct sk_buff *skb)
|
|||
*
|
||||
* Trims the message to the provided mark. Returns -1.
|
||||
*/
|
||||
static inline int nlmsg_trim(struct sk_buff *skb, void *mark)
|
||||
static inline int nlmsg_trim(struct sk_buff *skb, const void *mark)
|
||||
{
|
||||
if (mark)
|
||||
skb_trim(skb, (unsigned char *) mark - skb->data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue