Commit aea656b0 authored by Christian König's avatar Christian König

drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

This wasn't initialized for pre NV50 hardware.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reported-and-Tested-by: default avatarMark Hounschell <markh@compro.net>
Reviewed-by: default avatarKarol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/series/84298/
parent c70582bb
......@@ -1215,8 +1215,8 @@ nouveau_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_resource *reg)
}
reg->bus.offset = handle;
ret = 0;
}
ret = 0;
break;
default:
ret = -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment