diff options
author | Chia-I Wu <[email protected]> | 2020-02-05 10:19:46 -0800 |
---|---|---|
committer | Gerd Hoffmann <[email protected]> | 2020-02-06 11:55:08 +0100 |
commit | 1425a4ce4959d08d081e015fedfa4a76ba024c3a (patch) | |
tree | 8b45c721edb8e25213a782f7e25ee77de09907f8 /lib/mpi/mpi-internal.h | |
parent | 58547d7d5c6f4c5d18a1719c87799d825741e64a (diff) |
drm/virtio: remove incorrect ENOSPC check
The handling of virtqueue_add_sgs ENOSPC error is incorrect because
it can result in out-of-order virtqueue_add_sgs and break fences.
We never get ENOSPC anyway because the caller waits until there is
enough space (the other caller that did not wait was removed in
commit 32d6c2c5b522 ("drm/virtio: Rewrite virtio_gpu_queue_ctrl_buffer
using fenced version.")). Remove the incorrect and unnecessary error
path.
This also adds a WARN_ON(ret) until we properly handle errors.
Signed-off-by: Chia-I Wu <[email protected]>
Cc: David Riley <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions