]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/fib_frontend.c
net: cleanup unsigned to unsigned int
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / fib_frontend.c
index cbe3a68507cf89809cfc94dd1770afef1f223ac5..3854411fa37ce738fd29243dd14940beb01ff2a7 100644 (file)
@@ -136,13 +136,13 @@ static void fib_flush(struct net *net)
  * Find address type as if only "dev" was present in the system. If
  * on_dev is NULL then all interfaces are taken into consideration.
  */
-static inline unsigned __inet_dev_addr_type(struct net *net,
-                                           const struct net_device *dev,
-                                           __be32 addr)
+static inline unsigned int __inet_dev_addr_type(struct net *net,
+                                               const struct net_device *dev,
+                                               __be32 addr)
 {
        struct flowi4           fl4 = { .daddr = addr };
        struct fib_result       res;
-       unsigned ret = RTN_BROADCAST;
+       unsigned int ret = RTN_BROADCAST;
        struct fib_table *local_table;
 
        if (ipv4_is_zeronet(addr) || ipv4_is_lbcast(addr))
@@ -740,7 +740,7 @@ void fib_del_ifaddr(struct in_ifaddr *ifa, struct in_ifaddr *iprim)
 #define BRD_OK         2
 #define BRD0_OK                4
 #define BRD1_OK                8
-       unsigned ok = 0;
+       unsigned int ok = 0;
        int subnet = 0;         /* Primary network */
        int gone = 1;           /* Address is missing */
        int same_prefsrc = 0;   /* Another primary with same IP */