Skip to contentSkip to conversation

Documentation: Fix a typo in mailbox.txt

PATCH In review Masanari Iida 2 participants 3 messages Oct 21, 2014 – Nov 3, 2014 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: Fix a typo in mailbox.txt

This patch fix a typo in Documentation/mailbox.txt "bool async" is defined in struct demo_client.

---
 Documentation/mailbox.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/mailbox.txt +1 -1
index 60f43ff..1092ad9 100644
@@ -53,7 +53,7 @@ static void message_from_remote(struct mbox_client *cl, void *mssg)
 {
 	struct demo_client *dc = container_of(mbox_client,
 						struct demo_client, cl);
-	if (dc->aysnc) {
+	if (dc->async) {
 		if (is_an_ack(mssg)) {
 			/* An ACK to our last sample sent */
 			return; /* Or do something else here */
Signature · 1 line
2.1.2.451.g98349e5
maintainer
#1 lore raw
Quoted 2 lines · On Wed, 22 Oct 2014 08:36:07 +0900 Masanari Iida <[email protected]> wrote:

This patch fix a typo in Documentation/mailbox.txt "bool async" is defined in struct demo_client.

This seems worthy of application, but it makes me worry: clearly the example code in this file was not taken from a working file and has not actually been built. It seems like this code would be better placed in samples/ as a working example?

jon