[PATCH] Documentation: input: Fix bracket

Manuel Ebner posted 1 patch 2 weeks, 6 days ago
Documentation/input/notifier.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] Documentation: input: Fix bracket
Posted by Manuel Ebner 2 weeks, 6 days ago
Add missing '(' to C snippet.

Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>
---
 Documentation/input/notifier.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/input/notifier.rst b/Documentation/input/notifier.rst
index 824379399..e7facd1a1 100644
--- a/Documentation/input/notifier.rst
+++ b/Documentation/input/notifier.rst
@@ -31,7 +31,7 @@ In a rough C snippet, we have::
     kbd_keycode(keycode) {
 	...
 	params.value = keycode;
-	if (notifier_call_chain(KBD_KEYCODE,&params) == NOTIFY_STOP)
+	if ((notifier_call_chain(KBD_KEYCODE,&params) == NOTIFY_STOP)
 	    || !bound) {
 		notifier_call_chain(KBD_UNBOUND_KEYCODE,&params);
 		return;
-- 
2.54.0
Re: [PATCH] Documentation: input: Fix bracket
Posted by Jonathan Corbet 1 week, 3 days ago
Manuel Ebner <manuelebnerli@mailbox.org> writes:

> Add missing '(' to C snippet.
>
> Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>
> ---
>  Documentation/input/notifier.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/input/notifier.rst b/Documentation/input/notifier.rst
> index 824379399..e7facd1a1 100644
> --- a/Documentation/input/notifier.rst
> +++ b/Documentation/input/notifier.rst
> @@ -31,7 +31,7 @@ In a rough C snippet, we have::
>      kbd_keycode(keycode) {
>  	...
>  	params.value = keycode;
> -	if (notifier_call_chain(KBD_KEYCODE,&params) == NOTIFY_STOP)
> +	if ((notifier_call_chain(KBD_KEYCODE,&params) == NOTIFY_STOP)
>  	    || !bound) {
>  		notifier_call_chain(KBD_UNBOUND_KEYCODE,&params);
>  		return;

I've applied this, but this document looks beyond obsolete and in need
of more thorough help...

Thanks,

jon