[PATCH v2 3/4] test: Use positive conditional in test_matches()

Simon Glass sjg at chromium.org
Thu Feb 18 05:45:22 CET 2021


On Thu, 11 Feb 2021 at 07:40, Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> 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 at linux.intel.com>
> ---
> v2: new patch
>  test/test-main.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list