OSDN Git Service

avctp: Fix dead assignment in control_response
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 13 Nov 2012 12:52:38 +0000 (13:52 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 13 Nov 2012 13:09:46 +0000 (15:09 +0200)
Value stored to req is never read before writing it again.

audio/avctp.c

index 6ba25e4..29756f6 100644 (file)
@@ -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) {