]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panthor: Preserve the result returned by panthor_fw_resume()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 11 Dec 2024 07:54:15 +0000 (08:54 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 11 Dec 2024 09:03:50 +0000 (10:03 +0100)
commit4bd56ca8226dda6115bca385b166ef87e867d807
tree65e408dfe59b6e6ed15dc28b1ebe1098291bbf64
parent6b4dfdcde3573a12b72d2869dabd4ca37ad7e9c7
drm/panthor: Preserve the result returned by panthor_fw_resume()

WARN() will return true if the condition is true, false otherwise.
If we store the return of drm_WARN_ON() in ret, we lose the actual
error code.

v3:
- Add R-b
v2:
- Add R-b

Fixes: 5fe909cae118 ("drm/panthor: Add the device logical block")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Adrian Larumbe <adrian.larumbe@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241211075419.2333731-2-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_device.c