u-boot/test
Michal Suchanek c726fc01cf dm: treewide: Use uclass_first_device_err when accessing one device
There is a number of users that use uclass_first_device to access the
first and (assumed) only device in uclass.

Some check the return value of uclass_first_device and also that a
device was returned which is exactly what uclass_first_device_err does.

Some are not checking that a device was returned and can potentially
crash if no device exists in the uclass. Finally there is one that
returns NULL on error either way.

Convert all of these to use uclass_first_device_err instead, the return
value will be removed from uclass_first_device in a later patch.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-17 21:17:12 -06:00
..
boot dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
cmd test: run setexpr test only on sandbox 2022-10-12 08:56:24 -04:00
common cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
dm dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
env sandbox: add test of CONFIG_ENV_IMPORT_FDT 2021-05-04 12:52:30 -04:00
fs Consistently use nproc for counting the CPUs 2020-01-30 13:30:35 -05:00
fuzz dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
image treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
lib display_options: print_size: Fix order overflow 2022-09-23 15:13:18 -04:00
log test: fix log tests 2022-07-26 02:30:56 -06:00
optee test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
overlay test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
py cmd: xxd: add new command 2022-10-11 15:40:48 -04:00
stdint Remove <inttypes.h> includes and PRI* usages in printf() entirely 2018-09-10 20:48:17 -04:00
trace SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bloblist.c bloblist: Add functions to obtain base address and size 2022-01-13 09:13:41 -07:00
bootm.c test: Fix bootm_test_subst_var() running independently 2022-09-12 18:06:36 -04:00
cmd_ut.c test: run setexpr test only on sandbox 2022-10-12 08:56:24 -04:00
command_ut.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
common.sh Consistently use nproc for counting the CPUs 2020-01-30 13:30:35 -05:00
compression.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
Kconfig test: Add some tests for kconfig.h 2022-08-10 13:38:30 -04:00
Makefile test: Add some tests for kconfig.h 2022-08-10 13:38:30 -04:00
nokia_rx51_test.sh Nokia RX-51: Add booting from UBI into test script 2022-09-15 16:11:46 -04:00
print_ut.c lib: Move string tests to the string module 2022-04-25 10:00:03 -04:00
run Makefile: Add a pcheck option to run tests in parallel 2022-09-12 18:06:36 -04:00
str_ut.c lib: Add a way to find the postiion of a trailing number 2022-04-25 10:00:03 -04:00
test-main.c dm: treewide: Do not opencode uclass_probe_all() 2022-10-17 21:17:12 -06:00
time_ut.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
unicode_ut.c test: unit test for u16_strlcat() 2022-05-03 21:39:22 +02:00
ut.c test: Add a way to skip console checking until a string matches 2021-09-16 14:39:40 -04:00