Skip to contentSkip to conversation

lib-remove-redundant-assignment-to-variable-ret.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 20, 2022

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib: remove redundant assignment to variable ret
has been removed from the -mm tree. Its filename was
lib-remove-redundant-assignment-to-variable-ret.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Colin Ian King <[email protected]>
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.

---

 lib/asn1_encoder.c |    2 --
 1 file changed, 2 deletions(-)
lib/asn1_encoder.c renamed from lib/asn1_encoder.c~lib-remove-redundant-assignment-to-variable-ret +0 -2
@@ -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 [email protected] are

kernel-sysctlc-remove-unused-variable-ten_thousand.patch