Skip to content

Commit

Permalink
net: caif: remove redundant assignment to variable expectlen
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Dec 28, 2021
1 parent b4aadd2 commit 0f1eae8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/caif/cfserl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f1eae8

Please sign in to comment.