]> git.ipfire.org Git - thirdparty/linux.git/commit
crash_dump: remove redundant less-than-zero check
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 28 Feb 2026 08:51:36 +0000 (09:51 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:35 +0000 (21:19 -0700)
commitc02474fe1a62bb20548abd37b1d492a43a8b906e
treec7429e9898f15b1bc6add71b660e6865e3dd0bcc
parent380369ea2e9d3c41855b0d8c41898dcd564209fd
crash_dump: remove redundant less-than-zero check

'key_count' is an 'unsigned int' and cannot be less than zero. Remove
the redundant condition.

Link: https://lkml.kernel.org/r/20260228085136.861971-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Cc: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/crash_dump_dm_crypt.c