drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

This wasn't initialized for pre NV50 hardware.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-and-Tested-by: Mark Hounschell <markh@compro.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/series/84298/
This commit is contained in:
Christian König 2020-11-26 13:35:08 +01:00
parent c70582bbf2
commit aea656b0d0

View File

@ -1215,8 +1215,8 @@ retry:
}
reg->bus.offset = handle;
ret = 0;
}
ret = 0;
break;
default:
ret = -EINVAL;