mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
The indirection through the resources array is unnecessarily complicated
and resuling in using IS_ERR() and PTR_ERR() on a valid address. A local
variable for the devm_ioremap_resource() return value is both easier to
read and matches expectations when reading code.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/asahi/aYXvX1bYOXtYCgfC@stanley.mountain/
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| atc.c | ||
| Kconfig | ||
| Makefile | ||