Commit 466348a
printk: Use console_is_usable on console_unblank
The macro for_each_console_srcu iterates over all registered consoles. It's
implied that all registered consoles have CON_ENABLED flag set, making
the check for the flag unnecessary. Call console_is_usable function to
fully verify if the given console is usable before calling the ->unblank
callback.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20251121-printk-cleanup-part2-v2-3-57b8b78647f4@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>1 parent 4c70ab1 commit 466348a
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3331 | 3331 | | |
3332 | 3332 | | |
3333 | 3333 | | |
3334 | | - | |
3335 | | - | |
3336 | | - | |
| 3334 | + | |
3337 | 3335 | | |
3338 | 3336 | | |
3339 | | - | |
| 3337 | + | |
3340 | 3338 | | |
3341 | 3339 | | |
3342 | 3340 | | |
| |||
3373 | 3371 | | |
3374 | 3372 | | |
3375 | 3373 | | |
3376 | | - | |
3377 | | - | |
3378 | | - | |
| 3374 | + | |
3379 | 3375 | | |
3380 | 3376 | | |
3381 | | - | |
| 3377 | + | |
3382 | 3378 | | |
3383 | 3379 | | |
3384 | 3380 | | |
| |||
0 commit comments