xv: Remove some dumb calls SendErrorToClient

We already generate errors from the top level when non-Success is
returned from a dispatch function, so really we were emitting errors
twice.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Adam Jackson 2016-06-20 12:57:11 -04:00
parent 0bfa6bf9de
commit 2f981c06a5

View File

@ -949,7 +949,6 @@ ProcXvShmPutImage(ClientPtr client)
static int static int
ProcXvShmPutImage(ClientPtr client) ProcXvShmPutImage(ClientPtr client)
{ {
SendErrorToClient(client, XvReqCode, xv_ShmPutImage, 0, BadImplementation);
return BadImplementation; return BadImplementation;
} }
#endif #endif
@ -1108,7 +1107,6 @@ ProcXvDispatch(ClientPtr client)
UpdateCurrentTime(); UpdateCurrentTime();
if (stuff->data >= xvNumRequests) { if (stuff->data >= xvNumRequests) {
SendErrorToClient(client, XvReqCode, stuff->data, 0, BadRequest);
return BadRequest; return BadRequest;
} }
@ -1429,7 +1427,6 @@ SProcXvDispatch(ClientPtr client)
UpdateCurrentTime(); UpdateCurrentTime();
if (stuff->data >= xvNumRequests) { if (stuff->data >= xvNumRequests) {
SendErrorToClient(client, XvReqCode, stuff->data, 0, BadRequest);
return BadRequest; return BadRequest;
} }