From: gowtham babu <gowtham.ab@samsung.com>
To: linux-bluetooth@vger.kernel.org
Cc: bharat.panda@samsung.com, cpgs@samsung.com,
gowtham babu <gowtham.ab@samsung.com>
Subject: [PATCH 1/2] tools/btsnoop : Fix variable reassigning issue
Date: Wed, 10 Sep 2014 12:05:44 +0530 [thread overview]
Message-ID: <1410330944-3492-1-git-send-email-gowtham.ab@samsung.com> (raw)
The Variable 'written' is reassigned a value before the old one has been used.
The below on fix the same.
---
tools/btsnoop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/btsnoop.c b/tools/btsnoop.c
index 6ca62d2..86f4691 100644
--- a/tools/btsnoop.c
+++ b/tools/btsnoop.c
@@ -211,7 +211,7 @@ next_packet:
goto next_packet;
}
- written = input_pkt[select_input].size = htobe32(toread - 1);
+ input_pkt[select_input].size = htobe32(toread - 1);
written = input_pkt[select_input].len = htobe32(toread - 1);
switch (buf[0]) {
--
1.9.1
next reply other threads:[~2014-09-10 6:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-10 6:35 gowtham babu [this message]
2014-09-12 16:51 ` [PATCH 1/2] tools/btsnoop : Fix variable reassigning issue Johan Hedberg
2014-09-15 6:15 ` Gowtham Anandha Babu
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=1410330944-3492-1-git-send-email-gowtham.ab@samsung.com \
--to=gowtham.ab@samsung.com \
--cc=bharat.panda@samsung.com \
--cc=cpgs@samsung.com \
--cc=linux-bluetooth@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox