aboutsummaryrefslogtreecommitdiffstats
path: root/net/dcb
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2012-06-12 22:55:01 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-13 18:46:35 -0400
commit7a282bc37f8a1e7b46907d78724177d20214b137 (patch)
treead25ce9e596dfe7a8b8ef10c3d0c99e864b09b65 /net/dcb
parent4e4f2f69704be0ae218d91fb827e5a6987fe262f (diff)
dcbnl: Use type safe nlmsg_data()
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
-rw-r--r--net/dcb/dcbnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c
index 6e1c32468236..70bba3eb4ae9 100644
--- a/net/dcb/dcbnl.c
+++ b/net/dcb/dcbnl.c
@@ -1659,7 +1659,7 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
1659{ 1659{
1660 struct net *net = sock_net(skb->sk); 1660 struct net *net = sock_net(skb->sk);
1661 struct net_device *netdev; 1661 struct net_device *netdev;
1662 struct dcbmsg *dcb = (struct dcbmsg *)NLMSG_DATA(nlh); 1662 struct dcbmsg *dcb = nlmsg_data(nlh);
1663 struct nlattr *tb[DCB_ATTR_MAX + 1]; 1663 struct nlattr *tb[DCB_ATTR_MAX + 1];
1664 u32 pid = skb ? NETLINK_CB(skb).pid : 0; 1664 u32 pid = skb ? NETLINK_CB(skb).pid : 0;
1665 int ret = -EINVAL; 1665 int ret = -EINVAL;