aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-29 08:42:56 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-06-11 18:23:31 +0200
commita86b4936ba6827e7c1b658d522412e5a78c03242 (patch)
treed11a126b83b32fd4a9556a319fb0a8cd72e5e0fc /drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c
parentmedia: atomisp: get rid of non-Linux error codes (diff)
downloadwireguard-linux-a86b4936ba6827e7c1b658d522412e5a78c03242.tar.xz
wireguard-linux-a86b4936ba6827e7c1b658d522412e5a78c03242.zip
media: atomisp: get rid of an error abstraction layer
There is an abstraction layer there meant to convert to the Linux standard error codes. As the driver now use such errors everywhere. we can get rid of this. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c')
-rw-r--r--drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c b/drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c
index 0460f102d36f..4436e82f1487 100644
--- a/drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c
+++ b/drivers/staging/media/atomisp/pci/runtime/eventq/src/eventq.c
@@ -50,7 +50,7 @@ int ia_css_eventq_send(
{
u8 tmp[4];
u32 sw_event;
- int error = ENOSYS;
+ int error = -ENOSYS;
/*
* Encode the queue type, the thread ID and
@@ -65,7 +65,7 @@ int ia_css_eventq_send(
/* queue the software event (busy-waiting) */
for ( ; ; ) {
error = ia_css_queue_enqueue(eventq_handle, sw_event);
- if (error != ENOBUFS) {
+ if (error != -ENOBUFS) {
/* We were able to successfully send the event
or had a real failure. return the status*/
break;