x is never reused, no need to shift it
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 17 Jan 2017 15:07:31 +0000 (10:07 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 24 Jan 2017 20:44:38 +0000 (15:44 -0500)
Also remove noise in scanbuild report.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-metadata.c
src/common/compat/string.h

index c1a80c746847a3161f28c143c487f5ccfcde194f..fb1f1152180aad9d714831a9dfc70e1ec2f2a4ee 100644 (file)
@@ -74,7 +74,6 @@ int fls(unsigned int x)
                r -= 2;
        }
        if (!(x & 0x80000000U)) {
-               x <<= 1;
                r -= 1;
        }
        return r;
index 7c426ef3de3bd97e5056ef469f6db6cb528b1c61..db3db80522f5fe039f3f5f716f567f6676dfa87f 100644 (file)
@@ -117,7 +117,6 @@ static inline int lttng_fls(int val)
                r -= 2;
        }
        if (!(x & 0x80000000U)) {
-               x <<= 1;
                r -= 1;
        }
        return r;
This page took 0.025967 seconds and 4 git commands to generate.