diff options
| author | Wang Wensheng <wsw9603@163.com> | 2026-09-26 17:45:02 +0800 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2026-09-29 16:50:37 +0200 |
| commit | 267f1127c0f4035448acc6f2c3321eb38e54eecc (patch) | |
| tree | b9c5bd97be671151e126247140b01709eb414f7f /tools/lib/python/__init__.py | |
| parent | 731383dcf511c4d9ee00b3dc9f4f65689e233401 (diff) | |
| download | linux-next-267f1127c0f4035448acc6f2c3321eb38e54eecc.tar.gz linux-next-267f1127c0f4035448acc6f2c3321eb38e54eecc.zip | |
printk_ringbuffer: Avoid needless read of prb_desc
Since commit f244b4dc53e5 ("printk: ringbuffer: Improve prb_next_seq()
performance"), desc_read() allows @desc_out to be NULL. We can drop the
local `desc` variable in desc_reopen_last() and prb_first_seq(). Also
update the comment for desc_read().
v1->v2:
Update the comment suggested by John.
Signed-off-by: Wang Wensheng <wsw9603@163.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Link: https://patch.msgid.link/20260926094502.251204-1-wsw9603@163.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'tools/lib/python/__init__.py')
0 files changed, 0 insertions, 0 deletions
