projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e4f2f6
)
dcbnl: Use type safe nlmsg_data()
author
Thomas Graf
<tgraf@suug.ch>
Wed, 13 Jun 2012 02:55:01 +0000
(
02:55
+0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 13 Jun 2012 22:46:35 +0000
(15:46 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c
patch
|
blob
|
history
diff --git
a/net/dcb/dcbnl.c
b/net/dcb/dcbnl.c
index
6e1c324
..
70bba3e
100644
(file)
--- 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)
{
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;