drm/vmwgfx: Replace deprecated PTR_RET
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Sun, 8 Dec 2019 10:53:28 +0000 (11:53 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 15 Jan 2020 10:46:58 +0000 (11:46 +0100)
commita26ca967c240c628085142d6569fff69539b44e6
treef6b27bcee84a522d769be8b370d22d7b8d31d592
parent36891da8de9822a62d79b64f99e73442efbf3f1d
drm/vmwgfx: Replace deprecated PTR_RET

Commit 508108ea2747 ("drm/vmwgfx: Don't refcount command-buffer managed
resource lookups during command buffer validation") slips in use of
deprecated PTR_RET. Use PTR_ERR_OR_ZERO instead.

As the PTR_ERR_OR_ZERO is a bit longer than PTR_RET, we introduce
local variable ret for proper indentation and line-length limits.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c