Skip to contentSkip to conversation

Documentation: input: Fix bracket

PATCH In review Manuel Ebner 2 participants 2 messages Sep 5 – Sep 15

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: input: Fix bracket

Add missing '(' to C snippet.

---
 Documentation/input/notifier.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/input/notifier.rst +1 -1
index 824379399..e7facd1a1 100644
@@ -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;
Signature · 1 line
2.54.0
maintainer
#1 lore raw
Quoted 12 lines · Manuel Ebner

Add missing '(' to C snippet.

---
 Documentation/input/notifier.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/input/notifier.rst +0 -0
index 824379399..e7facd1a1 100644

Documentation/input/notifier.rst In a rough C snippet, we have:: · line 37

Quoted 8 lines
Documentation/input/notifier.rst +1 -1
@@ -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