Commit ebbd1769 authored by Dmitry Antipov's avatar Dmitry Antipov Committed by Mikulas Patocka
Browse files

dm: ima: avoid extra calls to strlen()



Since 'scnprintf()' returns the number of characters emitted (not
including the trailing '\0'), use that return value instead of the
subsequent calls to 'strlen()' where appropriate. Compile tested only.

Signed-off-by: default avatarDmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 548d88f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment