diff options
author | Marek Vasut | 2023-03-10 04:33:13 +0100 |
---|---|---|
committer | Simon Glass | 2023-03-14 16:08:51 -0600 |
commit | fa847bb409d6a07bbd923e7889b485e943d75689 (patch) | |
tree | 88aa1717fd693549dec86e30d04803be976a812e /test/dm/misc.c | |
parent | 20aaff677d8bc3cc2d529d859aa1ea65f5a4db7d (diff) |
test: Wrap assert macros in ({ ... }) and fix missing semicolons
Wrap the assert macros in ({ ... }) so they can be safely used both as
right side argument as well as in conditionals without curly brackets
around them. In the process, find a bunch of missing semicolons, fix
them.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'test/dm/misc.c')
-rw-r--r-- | test/dm/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/misc.c b/test/dm/misc.c index 1506fdefe32..8bdd8c64bca 100644 --- a/test/dm/misc.c +++ b/test/dm/misc.c @@ -51,13 +51,13 @@ static int dm_test_misc(struct unit_test_state *uts) /* Read back last issued ioctl */ ut_assertok(misc_call(dev, 2, NULL, 0, &last_ioctl, sizeof(last_ioctl))); - ut_asserteq(6, last_ioctl) + ut_asserteq(6, last_ioctl); ut_assertok(misc_ioctl(dev, 23, NULL)); /* Read back last issued ioctl */ ut_assertok(misc_call(dev, 2, NULL, 0, &last_ioctl, sizeof(last_ioctl))); - ut_asserteq(23, last_ioctl) + ut_asserteq(23, last_ioctl); /* Enable / disable tests */ |