mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
net: caif: remove redundant assignment to variable expectlen
Variable expectlen is being assigned a value that is never read, the assignment occurs before a return statement. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b4aadd2073
commit
0f1eae8e56
@ -128,7 +128,6 @@ static int cfserl_receive(struct cflayer *l, struct cfpkt *newpkt)
|
||||
if (pkt != NULL)
|
||||
cfpkt_destroy(pkt);
|
||||
layr->incomplete_frm = NULL;
|
||||
expectlen = 0;
|
||||
spin_unlock(&layr->sync);
|
||||
return -EPROTO;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user