We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09794a5 commit f1a15b9Copy full SHA for f1a15b9
kernel/trace/rv/rv_reactors.c
@@ -329,6 +329,7 @@ int rv_register_reactor(struct rv_reactor *reactor)
329
int rv_unregister_reactor(struct rv_reactor *reactor)
330
{
331
struct rv_reactor_def *ptr, *next;
332
+ int ret = 0;
333
334
mutex_lock(&rv_interface_lock);
335
@@ -343,13 +344,14 @@ int rv_unregister_reactor(struct rv_reactor *reactor)
343
344
ptr->reactor->name, ptr->counter);
345
printk(KERN_WARNING "rv: the rv_reactor %s cannot be removed\n",
346
ptr->reactor->name);
- return -EBUSY;
347
+ ret = -EBUSY;
348
+ break;
349
}
350
351
352
353
mutex_unlock(&rv_interface_lock);
- return 0;
354
+ return ret;
355
356
357
/*
0 commit comments