Skip to content

Commit ba3573f

Browse files
ycsindkalowsk
authored andcommitted
tests: drivers: syscon: remove dev pointer check
`DEVICE_DT_GET()` guarantees that the `dev` pointer can never be `NULL`, the check is therefore redundant, remove it. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
1 parent 1967d1e commit ba3573f

File tree

1 file changed

+0
-1
lines changed
  • tests/drivers/syscon/src

1 file changed

+0
-1
lines changed

tests/drivers/syscon/src/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ ZTEST(syscon, test_size)
1818
const size_t expected_size = DT_REG_SIZE(DT_NODELABEL(syscon));
1919
size_t size;
2020

21-
zassert_not_null(dev);
2221
zassert_ok(syscon_get_size(dev, &size));
2322
zassert_equal(size, expected_size, "size(%zu) != expected_size(%zu)", size,
2423
expected_size);

0 commit comments

Comments
 (0)