Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
0f1eae8e b4aadd20

-1
-1
net/caif/cfserl.c
··· 128 128 if (pkt != NULL) 129 129 cfpkt_destroy(pkt); 130 130 layr->incomplete_frm = NULL; 131 - expectlen = 0; 132 131 spin_unlock(&layr->sync); 133 132 return -EPROTO; 134 133 }