ipv4: remove unnecessary type castings
remove unnecessary void* type castings. Signed-off-by: Yu Zhe <yuzhe@nfschina.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1384,7 +1384,7 @@ static void nl_fib_input(struct sk_buff *skb)
|
||||
return;
|
||||
nlh = nlmsg_hdr(skb);
|
||||
|
||||
frn = (struct fib_result_nl *) nlmsg_data(nlh);
|
||||
frn = nlmsg_data(nlh);
|
||||
nl_fib_lookup(net, frn);
|
||||
|
||||
portid = NETLINK_CB(skb).portid; /* netlink portid */
|
||||
@@ -1425,7 +1425,7 @@ static void fib_disable_ip(struct net_device *dev, unsigned long event,
|
||||
|
||||
static int fib_inetaddr_event(struct notifier_block *this, unsigned long event, void *ptr)
|
||||
{
|
||||
struct in_ifaddr *ifa = (struct in_ifaddr *)ptr;
|
||||
struct in_ifaddr *ifa = ptr;
|
||||
struct net_device *dev = ifa->ifa_dev->dev;
|
||||
struct net *net = dev_net(dev);
|
||||
|
||||
|
Reference in New Issue
Block a user