Commit df59c450 authored by David S. Miller's avatar David S. Miller

net/core/dev.c: Do not cast pointers to int, use long.

parent 8a9fd6e0
......@@ -244,7 +244,7 @@ void dev_add_pack(struct packet_type *pt)
#ifdef CONFIG_NET_FASTROUTE
/* Hack to detect packet socket */
if (pt->data && (int)(pt->data) != 1) {
if (pt->data && (long)(pt->data) != 1) {
netdev_fastroute_obstacles++;
dev_clear_fastroute(pt->dev);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment