diff options
| author | Heinrich Schuchardt <[email protected]> | 2021-04-11 11:21:56 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-04-20 07:31:12 -0400 |
| commit | 1b8897c63e4c4eedd55f69f9728cd49f2a1cddba (patch) | |
| tree | 2a65b1ed57e18f7bd06e626bc20ec66fac09a2b6 /scripts/const_structs.checkpatch | |
| parent | fd90aca329a37eade4187ca886a8dea5c60aaba0 (diff) | |
test: fix test/dm/regmap.c
regmap_read() only fills the first two bytes of val. The last two bytes are
random data from the stack. This means the test will fail randomly.
For low endian systems we could simply initialize val to 0 and get correct
results. But tests should not depend on endianness. So let's use a pointer
conversion instead.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
