diff options
author | David Binder | 2016-09-26 17:03:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-09-27 13:06:16 +0200 |
commit | 264f7b8ac3ec3e7a38affd8140da30f8720b5946 (patch) | |
tree | 615d9990647175a5936f53a23eb865b28a8b57ab /drivers/staging/unisys/visorbus/visorchannel.c | |
parent | staging: unisys: visorbus: Convert visorchannel_signalremove() return val (diff) | |
download | kernel-qcow2-linux-264f7b8ac3ec3e7a38affd8140da30f8720b5946.tar.gz kernel-qcow2-linux-264f7b8ac3ec3e7a38affd8140da30f8720b5946.tar.xz kernel-qcow2-linux-264f7b8ac3ec3e7a38affd8140da30f8720b5946.zip |
staging: unisys: visorbus: Convert visorchannel_signalinsert() 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_signalinsert(), 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 70fcd1facd8a..300a65dc5c6c 100644 --- a/drivers/staging/unisys/visorbus/visorchannel.c +++ b/drivers/staging/unisys/visorbus/visorchannel.c @@ -493,12 +493,12 @@ visorchannel_create_with_lock(u64 physaddr, unsigned long channel_bytes, * @queue: the queue the message will be added to * @msg: the message to insert * - * Return: boolean indicating whether the insertion succeeded or failed + * Return: integer error code indicating the status of the insertion */ -bool +int visorchannel_signalinsert(struct visorchannel *channel, u32 queue, void *msg) { - bool rc; + int rc; unsigned long flags; if (channel->needs_lock) { @@ -509,6 +509,6 @@ visorchannel_signalinsert(struct visorchannel *channel, u32 queue, void *msg) rc = signalinsert_inner(channel, queue, msg); } - return !rc; + return rc; } EXPORT_SYMBOL_GPL(visorchannel_signalinsert); |