diff options
| author | Marcos Paulo de Souza <mpdesouza@suse.com> | 2025-11-21 15:50:35 -0300 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2025-11-27 15:54:50 +0100 |
| commit | 466348abb0c364cfaf01c6a1142e32cb0d704980 (patch) | |
| tree | e4d0eaac50c212309bd25d8feda5fa9291898b30 /drivers | |
| parent | 4c70ab110bdd6513f3cac6b9eb01ac3b7f0d23a2 (diff) | |
| download | linux-466348abb0c364cfaf01c6a1142e32cb0d704980.tar.gz | |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions
