From 0fda3648f96f5fe9b1b14870d1e51375901fc348 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 8 Mar 2015 09:17:38 +0000 Subject: Reduced MISRA annoyances. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7735 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/src/chthreads.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'os/rt/src/chthreads.c') diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index 69013017e..491f416d5 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -144,12 +144,8 @@ thread_t *_thread_init(thread_t *tp, tprio_t prio) { */ void _thread_memfill(uint8_t *startp, uint8_t *endp, uint8_t v) { - /*lint -save -e946 -e947 [18.2, 18.3] Normal pointers arithmetic, it - is safe.*/ while (startp < endp) { - /*lint -restore*/ - *startp = v; - startp++; + *startp++ = v; } } #endif /* CH_DBG_FILL_THREADS */ -- cgit v1.2.3