lkml.org 
[lkml]   [2022]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RESEND] samples: Remove redundant assignment for cn_test sample
Date
Remove redundant assignment for m->len

Signed-off-by: GUO Zihua <guozihua@huawei.com>
---
samples/connector/cn_test.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/samples/connector/cn_test.c b/samples/connector/cn_test.c
index 0958a171d048..42d6c9f33842 100644
--- a/samples/connector/cn_test.c
+++ b/samples/connector/cn_test.c
@@ -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",
--
2.36.0
\
 
 \ /
  Last update: 2022-05-19 05:03    [W:1.027 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site