[PATCH v2 3/4] test: Use positive conditional in test_matches()
Simon Glass
sjg at chromium.org
Thu Apr 29 18:03:55 CEST 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>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list