diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-12-04 15:01:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-05 18:16:27 -0500 |
commit | b618aaa91b5870e7bd139987ac4b7bf0851142d0 (patch) | |
tree | 1330b1b6bb9669167e9ee26133948defdfd00d9b /net | |
parent | abd86a55f4079d00ba2a0bcca6fe33be45f3e2ff (diff) |
net: constify netif_is_* helpers net_device param
As suggested by Eric, these helpers should have const dev param.
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index d1706e88fbeb..e5c395473eba 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5734,7 +5734,7 @@ EXPORT_SYMBOL(netdev_lower_dev_get_private); int dev_get_nest_level(struct net_device *dev, - bool (*type_check)(struct net_device *dev)) + bool (*type_check)(const struct net_device *dev)) { struct net_device *lower = NULL; struct list_head *iter; |