]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/batman-adv/hard-interface.c
batman-adv: use htons when possible
[karo-tx-linux.git] / net / batman-adv / hard-interface.c
index 0c8602e5a5c4d195d1463e63660ae6373e0e050f..004017c523fa501bfb06446a11df15e58575b632 100644 (file)
@@ -379,7 +379,7 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
 {
        struct batadv_priv *bat_priv;
        struct net_device *soft_iface, *master;
-       __be16 ethertype = __constant_htons(ETH_P_BATMAN);
+       __be16 ethertype = htons(ETH_P_BATMAN);
        int ret;
 
        if (hard_iface->if_status != BATADV_IF_NOT_IN_USE)