]> git.baikalelectronics.ru Git - uboot.git/commit
test: Avoid random numbers in dm_test_devm_regmap()
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:23 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commitf2a1de03b3b40957c53561cd5a520a8ab472adc9
tree654abcb95b24b48669b66e40ce8d6b35fc55f4e6
parent92bfe8425ea7b56e96df1ddbcf5a274869693b6d
test: Avoid random numbers in dm_test_devm_regmap()

There is no good reason to use a sequence from rand() here. We may as well
invent our own sequence.

This should molify Coverity which does not use rand() being used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 312949)
test/dm/regmap.c