mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02: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:
committed by
David S. Miller
parent
b4aadd2073
commit
0f1eae8e56
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user