mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
dcbnl: Use type safe nlmsg_data()
Signed-off-by: Thomas Graf <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4e4f2f6970
commit
7a282bc37f
1 changed files with 1 additions and 1 deletions
|
|
@ -1659,7 +1659,7 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
|
|||
{
|
||||
struct net *net = sock_net(skb->sk);
|
||||
struct net_device *netdev;
|
||||
struct dcbmsg *dcb = (struct dcbmsg *)NLMSG_DATA(nlh);
|
||||
struct dcbmsg *dcb = nlmsg_data(nlh);
|
||||
struct nlattr *tb[DCB_ATTR_MAX + 1];
|
||||
u32 pid = skb ? NETLINK_CB(skb).pid : 0;
|
||||
int ret = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue