diff options
author | David Binder | 2016-09-26 17:03:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-09-27 13:06:16 +0200 |
commit | f621a96850c262b7de42bd06eae4edd5bfd099d8 (patch) | |
tree | d9dd16e891c223251f631f80761352f18e570d4f /drivers/staging/unisys/visorbus/visorchannel.c | |
parent | staging: unisys: visorbus: Change support functions to integer return vals (diff) | |
download | kernel-qcow2-linux-f621a96850c262b7de42bd06eae4edd5bfd099d8.tar.gz kernel-qcow2-linux-f621a96850c262b7de42bd06eae4edd5bfd099d8.tar.xz kernel-qcow2-linux-f621a96850c262b7de42bd06eae4edd5bfd099d8.zip |
staging: unisys: visorbus: Convert visorchannel_signalremove() return val
Per Documentation/CodingStyle, function names that convey an action or an
imperative command should return an integer. This commit converts the
visorbus API function, visorchannel_signalremove(), to returning integer
values. All uses of this function are updated accordingly.
Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchannel.c')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorchannel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c index fe5a62089d09..70fcd1facd8a 100644 --- a/drivers/staging/unisys/visorbus/visorchannel.c +++ b/drivers/staging/unisys/visorbus/visorchannel.c @@ -270,12 +270,12 @@ signalremove_inner(struct visorchannel *channel, u32 queue, void *msg) * @queue: the queue the message will be removed from * @msg: the message to remove * - * Return: boolean indicating whether the removal succeeded or failed + * Return: integer error code indicating the status of the removal */ -bool +int visorchannel_signalremove(struct visorchannel *channel, u32 queue, void *msg) { - bool rc; + int rc; unsigned long flags; if (channel->needs_lock) { @@ -286,7 +286,7 @@ visorchannel_signalremove(struct visorchannel *channel, u32 queue, void *msg) rc = signalremove_inner(channel, queue, msg); } - return !rc; + return rc; } EXPORT_SYMBOL_GPL(visorchannel_signalremove); |