summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-10-27 08:56:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-03 07:27:47 +0100
commitb9f9eef7220612c0ff3077ce8a39d420b348b141 (patch)
tree99976291e65b124acd150222f2cb9292cfced497 /common
parent680a6a9616ad928672f1bff3b5c5d414cf9209d0 (diff)
downloadbarebox-b9f9eef7220612c0ff3077ce8a39d420b348b141.tar.gz
memtest: Make comments single line when appropriate
Make the comments single line when they fit into a single line to make the code a bit shorter. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/memtest.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/common/memtest.c b/common/memtest.c
index 0559359..9bd9025 100644
--- a/common/memtest.c
+++ b/common/memtest.c
@@ -360,14 +360,9 @@ int mem_test_moving_inversions(resource_size_t _start, resource_size_t _end)
init_progression_bar(3 * num_words);
- /*
- * Fill memory with a known pattern.
- */
+ /* Fill memory with a known pattern */
for (offset = 0; offset < num_words; offset++) {
- /*
- * Every 4K we update the progressbar.
- */
-
+ /* Every 4K we update the progressbar */
if (!(offset & (SZ_4K - 1))) {
if (ctrlc())
return -EINTR;
@@ -376,9 +371,7 @@ int mem_test_moving_inversions(resource_size_t _start, resource_size_t _end)
start[offset] = offset + 1;
}
- /*
- * Check each location and invert it for the second pass.
- */
+ /* Check each location and invert it for the second pass */
for (offset = 0; offset < num_words; offset++) {
if (!(offset & (SZ_4K - 1))) {
if (ctrlc())
@@ -399,9 +392,7 @@ int mem_test_moving_inversions(resource_size_t _start, resource_size_t _end)
start[offset] = anti_pattern;
}
- /*
- * Check each location for the inverted pattern and zero it.
- */
+ /* Check each location for the inverted pattern and zero it */
for (offset = 0; offset < num_words; offset++) {
if (!(offset & (SZ_4K - 1))) {
if (ctrlc())
@@ -424,9 +415,7 @@ int mem_test_moving_inversions(resource_size_t _start, resource_size_t _end)
}
show_progress(3 * num_words);
- /*
- * end of progressbar
- */
+ /* end of progressbar */
printf("\n");
return 0;