From: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
To: lttng-dev@lists.lttng.org
Cc: jgalar@efficios.com
Subject: [PATCH lttng-tools] x is never reused, no need to shift it
Date: Tue, 17 Jan 2017 10:07:31 -0500 [thread overview]
Message-ID: <1484665651-23987-1-git-send-email-jonathan.rajotte-julien__32628.6607575186$1484665687$gmane$org@efficios.com> (raw)
Also remove noise in scanbuild report.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
---
src/bin/lttng-sessiond/ust-metadata.c | 1 -
src/common/compat/string.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/src/bin/lttng-sessiond/ust-metadata.c b/src/bin/lttng-sessiond/ust-metadata.c
index c1a80c7..fb1f115 100644
--- a/src/bin/lttng-sessiond/ust-metadata.c
+++ b/src/bin/lttng-sessiond/ust-metadata.c
@@ -74,7 +74,6 @@ int fls(unsigned int x)
r -= 2;
}
if (!(x & 0x80000000U)) {
- x <<= 1;
r -= 1;
}
return r;
diff --git a/src/common/compat/string.h b/src/common/compat/string.h
index 7c426ef..db3db80 100644
--- a/src/common/compat/string.h
+++ b/src/common/compat/string.h
@@ -117,7 +117,6 @@ static inline int lttng_fls(int val)
r -= 2;
}
if (!(x & 0x80000000U)) {
- x <<= 1;
r -= 1;
}
return r;
--
2.7.4
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next reply other threads:[~2017-01-17 15:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 15:07 Jonathan Rajotte [this message]
[not found] <1484665651-23987-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2017-01-26 0:32 ` [PATCH lttng-tools] x is never reused, no need to shift it Jérémie Galarneau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='1484665651-23987-1-git-send-email-jonathan.rajotte-julien__32628.6607575186$1484665687$gmane$org@efficios.com' \
--to=jonathan.rajotte-julien@efficios.com \
--cc=jgalar@efficios.com \
--cc=lttng-dev@lists.lttng.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.