mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 04:47:05 +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
1 changed files with 0 additions and 1 deletions
|
@ -128,7 +128,6 @@ static int cfserl_receive(struct cflayer *l, struct cfpkt *newpkt)
|
||||||
if (pkt != NULL)
|
if (pkt != NULL)
|
||||||
cfpkt_destroy(pkt);
|
cfpkt_destroy(pkt);
|
||||||
layr->incomplete_frm = NULL;
|
layr->incomplete_frm = NULL;
|
||||||
expectlen = 0;
|
|
||||||
spin_unlock(&layr->sync);
|
spin_unlock(&layr->sync);
|
||||||
return -EPROTO;
|
return -EPROTO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue