]> git.baikalelectronics.ru Git - uboot.git/commit
test: Use positive conditional in test_matches()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 11 Feb 2021 14:40:11 +0000 (16:40 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Apr 2021 10:23:39 +0000 (03:23 -0700)
commitdf966c92752ffee2118de3cf0cc48046620b5837
treeb288bb26a3fcd0c6b03456a52408197e79da2c1f
parent7e0885de9b9793a3812842e50a27da25d0624e53
test: Use positive conditional in test_matches()

It is easier to read the positive conditional.

While at it, convert hard coded length of "_test_" to strlen("_test_")
which will be converted to a constant bu optimizing compiler.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/test-main.c