* [PATCH] Documentation: input: Fix bracket
@ 2026-09-05 7:41 Manuel Ebner
2026-09-15 19:35 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Manuel Ebner @ 2026-09-05 7:41 UTC (permalink / raw)
To: Dmitry Torokhov, Jonathan Corbet, Shuah Khan
Cc: Manuel Ebner, linux-input, linux-doc, linux-kernel
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,¶ms) == NOTIFY_STOP)
+ if ((notifier_call_chain(KBD_KEYCODE,¶ms) == NOTIFY_STOP)
|| !bound) {
notifier_call_chain(KBD_UNBOUND_KEYCODE,¶ms);
return;
--
2.54.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: input: Fix bracket
2026-09-05 7:41 [PATCH] Documentation: input: Fix bracket Manuel Ebner
@ 2026-09-15 19:35 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2026-09-15 19:35 UTC (permalink / raw)
To: Manuel Ebner, Dmitry Torokhov, Shuah Khan
Cc: Manuel Ebner, linux-input, linux-doc, linux-kernel
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,¶ms) == NOTIFY_STOP)
> + if ((notifier_call_chain(KBD_KEYCODE,¶ms) == NOTIFY_STOP)
> || !bound) {
> notifier_call_chain(KBD_UNBOUND_KEYCODE,¶ms);
> return;
I've applied this, but this document looks beyond obsolete and in need
of more thorough help...
Thanks,
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-15 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-05 7:41 [PATCH] Documentation: input: Fix bracket Manuel Ebner
2026-09-15 19:35 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®