interface: detect and handle changes in device config
[project/netifd.git] / utils.h
diff --git a/utils.h b/utils.h
index 7973b6fb3e3920b3598e02b94c9cf836ca2b391e..4e14bcf5cda246c477fc4a8854bbe7c45db5e66a 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -98,10 +98,8 @@ static inline int fls(int x)
         x <<= 2;
         r -= 2;
     }
-    if (!(x & 0x80000000u)) {
-        x <<= 1;
+    if (!(x & 0x80000000u))
         r -= 1;
-    }
     return r;
 }
 #endif