]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-ima: remove dm_ima_reset_data()
authorBenjamin Marzinski <bmarzins@redhat.com>
Wed, 29 Apr 2026 20:20:59 +0000 (16:20 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 4 May 2026 12:52:18 +0000 (14:52 +0200)
commit8904a3de874e7053cf510095ada30d6a02ce5c90
treea0c5548a5080c3e1eba5a308315f47d5fa86206c
parent97cb8be0fd4c50d310988e0822f7e91d1711e6f8
dm-ima: remove dm_ima_reset_data()

There's no point in saving the string length of DM_IMA_VERSION_STR. It's
a constant, so the compiler will precompute it. dm_create() will already
zero out the rest of dm->ima.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-ima.c
drivers/md/dm-ima.h
drivers/md/dm.c