The patch titled Subject: lib: remove redundant assignment to variable ret has been added to the -mm tree. Its filename is lib-remove-redundant-assignment-to-variable-ret.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/lib-remove-redundant-assignment-to-variable-ret.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/lib-remove-redundant-assignment-to-variable-ret.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Colin Ian King <colin.i.king@xxxxxxxxx> Subject: lib: remove redundant assignment to variable ret 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@xxxxxxxxx Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx> Cc: Jarkko Sakkinen <jarkko@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/asn1_encoder.c | 2 -- 1 file changed, 2 deletions(-) --- a/lib/asn1_encoder.c~lib-remove-redundant-assignment-to-variable-ret +++ a/lib/asn1_encoder.c @@ -164,8 +164,6 @@ asn1_encode_oid(unsigned char *data, con data_len -= 3; - ret = 0; - for (i = 2; i < oid_len; i++) { ret = asn1_encode_oid_digit(&d, &data_len, oid[i]); if (ret < 0) _ Patches currently in -mm which might be from colin.i.king@xxxxxxxxx are ocfs2-remove-redundant-assignment-to-pointer-root_bh.patch mm-migrate-remove-redundant-variables-used-in-a-for-loop.patch lib-remove-redundant-assignment-to-variable-ret.patch nilfs2-remove-redundant-pointer-sbufs.patch kernel-sysctlc-remove-unused-variable-ten_thousand.patch