Cleanup: Unnecessary bit shift
[lttng-ust.git] / libringbuffer / backend_internal.h
index 344784feccde9e5cb042175216840c46ba1aa57d..79f8bdeaea9ad933f4956f6eaf641be8416b092c 100644 (file)
@@ -485,7 +485,7 @@ static inline int lttng_ust_fls(unsigned int x)
                r -= 2;
        }
        if (!(x & 0x80000000U)) {
-               x <<= 1;
+               /* No need to bit shift on last operation */
                r -= 1;
        }
        return r;
This page took 0.023469 seconds and 4 git commands to generate.