Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae86e81e authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: core: remove unused variable



which caused gcc 4.6 to warn about
    variable 'destination' set but not used.

Since the hardware ensures that we receive only response packets with
proper destination node ID (in a given bus generation), we have no use
for destination here in the core as well as in upper layers.

(This is different with request packets.  There we pass destination node
ID to upper layers because they may for example need to check whether
this was an unicast or broadcast request.)

Reported-and-Tested-By: default avatarJustin P. Mattock <justinmattock@gmail.com>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 5030c807
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -881,11 +881,10 @@ void fw_core_handle_response(struct fw_card *card, struct fw_packet *p)
	unsigned long flags;
	u32 *data;
	size_t data_length;
	int tcode, tlabel, destination, source, rcode;
	int tcode, tlabel, source, rcode;

	tcode	= HEADER_GET_TCODE(p->header[0]);
	tlabel	= HEADER_GET_TLABEL(p->header[0]);
	destination = HEADER_GET_DESTINATION(p->header[0]);
	source	= HEADER_GET_SOURCE(p->header[1]);
	rcode	= HEADER_GET_RCODE(p->header[1]);