From 1a1991991074633161c0a8037eb6c2966604bc6a Mon Sep 17 00:00:00 2001 From: Georgii Staroselskii Date: Sat, 16 Sep 2017 15:11:17 +0300 Subject: [PATCH] interrupts-10.md: fix a typo in othe way -> otherwise --- interrupts/interrupts-10.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interrupts/interrupts-10.md b/interrupts/interrupts-10.md index af9ad51..e71512c 100644 --- a/interrupts/interrupts-10.md +++ b/interrupts/interrupts-10.md @@ -243,7 +243,7 @@ if (!irq_settings_can_request(desc) || WARN_ON(irq_settings_is_per_cpu_devid(des return -EINVAL; ``` -and exit with the `-EINVAL` in othre way. After this we check the given interrupt handler. If it was not passed to the `request_irq` function, we check the `thread_fn`. If both handlers are `NULL`, we return with the `-EINVAL`. If an interrupt handler was not passed to the `request_irq` function, but the `thread_fn` is not null, we set handler to the `irq_default_primary_handler`: +and exit with the `-EINVAL`otherways. After this we check the given interrupt handler. If it was not passed to the `request_irq` function, we check the `thread_fn`. If both handlers are `NULL`, we return with the `-EINVAL`. If an interrupt handler was not passed to the `request_irq` function, but the `thread_fn` is not null, we set handler to the `irq_default_primary_handler`: ```C if (!handler) {