mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04: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…
Add table
Add a link
Reference in a new issue