reset: Avoid a warning in devm_reset_bulk_get_by_node()
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:21 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
commitca4c24509c60cfc95563d25b482cfed3789aca59
treec6a2b71c9925db3affb41a84b63facb917c3d538
parent7f0f4e1825d1cbc64f6f8cba17f6deb7282acb2b
reset: Avoid a warning in devm_reset_bulk_get_by_node()

The devres_alloc() function is intended to avoid the need for freeing
memory, although in practice it may not be enabled, thus leading to a true
leak.

Nevertheless this is intended. Add a comment to explain this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 312952)
drivers/reset/reset-uclass.c