From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: gowtham babu To: linux-bluetooth@vger.kernel.org Cc: bharat.panda@samsung.com, cpgs@samsung.com, gowtham babu Subject: [PATCH 1/2] tools/btsnoop : Fix variable reassigning issue Date: Wed, 10 Sep 2014 12:05:44 +0530 Message-id: <1410330944-3492-1-git-send-email-gowtham.ab@samsung.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 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