]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tty: omit need_resched() before cond_resched()
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 14 Jul 2025 16:17:15 +0000 (18:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 09:05:34 +0000 (11:05 +0200)
commit103f5d8c35b3d22b700f1f6d585e499b2df62df6
treeb7f37cab5b2a9a755783c2c800987a802b412618
parenta48e897b6999eec1da6dc37e9af834dd2a88a0bb
tty: omit need_resched() before cond_resched()

There's no need to call need_resched() because cond_resched() will do
nothing if need_resched() returns false.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Link: https://lore.kernel.org/r/5a11ad09-5508-933c-f044-6a236bf00557@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_buffer.c