Skip to contentSkip to conversation

samples: Remove redundant assignment for cn_test sample

PATCH RESEND New GUO Zihua 1 participant 1 message May 19, 2022

lore
Share & tools
lore

GUO Zihua

author
#0 lore raw

PATCH RESEND 1/1 samples: Remove redundant assignment for cn_test sample

Remove redundant assignment for m->len

---
 samples/connector/cn_test.c | 1 -
 1 file changed, 1 deletion(-)
samples/connector/cn_test.c +0 -1
index 0958a171d048..42d6c9f33842 100644
@@ -124,7 +124,6 @@ static void cn_test_timer_func(struct timer_list *unused)
 
 		memcpy(&m->id, &cn_test_id, sizeof(m->id));
 		m->seq = cn_test_timer_counter;
-		m->len = sizeof(data);
 
 		m->len =
 		    scnprintf(data, sizeof(data), "counter = %u",
Signature · 1 line
2.36.0