Thread (20 messages) flat view 20 messages, 2 authors, 2012-11-13
STALE5047d

[PATCH BlueZ 1/3] avctp: Fix dead assignment in control_response

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2012-11-13 13:21:06
Subsystem: the rest · Maintainer: Linus Torvalds

From: Szymon Janc <redacted>

Value stored to req is never read before writing it again.
---
 audio/avctp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audio/avctp.c b/audio/avctp.c
index 6ba25e4..29756f6 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -577,7 +577,7 @@ static void control_response(struct avctp_channel *control,
 					size_t operand_count)
 {
 	struct avctp_pending_req *p = control->p;
-	struct avctp_control_req *req = p->data;
+	struct avctp_control_req *req;
 	GSList *l;
 
 	if (p && p->transaction == avctp->transaction) {
-- 
1.7.11.7
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help