]> git.dujemihanovic.xyz Git - u-boot.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)
commit494a5e126b4de48091a161436839647246b29d29
treeb288bb26a3fcd0c6b03456a52408197e79da2c1f
parentff232a72969567cd0339d4f96fa0b1840bef500e
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