summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-12-04 15:01:31 +0100
committerGeorg Veichtlbauer <georg@vware.at>2023-11-02 10:58:54 +0100
commit1a9554dcfe45043684ef68d863fa83cd0f01aaa1 (patch)
treec3c3855a2d1a6061230def7a74e5511fd4c9becb /net/core/dev.c
parentee3368dcece947566148d1fc08389dec18d4fd59 (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> Change-Id: I320e01f441a2b266680cdaefc5eb659f329143fb Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 3d26340ef52b..352581dd5922 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5819,7 +5819,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;