dm: test: bus: Use a local variable to simplify code
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:21:51 +0000 (12:21 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:19 +0000 (11:11 -0600)
commite23eb614a415afa6bc2b3609b4f7a07c0f425744
tree906b0802f20a87a175dbf929482b9bbf6bd79694
parent887bd4164d7059df214a7683920ee853b8d34809
dm: test: bus: Use a local variable to simplify code

Adjust this test to avoid repeating the same code too often.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
test/dm/bus.c