]> git.baikalelectronics.ru Git - kernel.git/commit
lib: remove redundant assignment to variable ret
authorColin Ian King <colin.i.king@gmail.com>
Thu, 20 Jan 2022 02:10:38 +0000 (18:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Jan 2022 06:52:55 +0000 (08:52 +0200)
commitaa854120cc10f6fa9d745ef8cd869ddb6d526155
tree13d2a89405c76fb3f0eb3d363a8f9f84e2193a7f
parent8ea0455f48c3dceb789ab813f62f60f4028eff72
lib: remove redundant assignment to variable ret

The variable ret is being assigned a value that is never read.  If the
for-loop is entered then ret is immediately re-assigned a new value.  If
the for-loop is not executed ret is never read.  The assignment is
redundant and can be removed.

Link: https://lkml.kernel.org/r/20211230134557.83633-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/asn1_encoder.c