Skip to content
Commit fc772580 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Mike Snitzer
Browse files

dm crypt: Slightly simplify crypt_set_keyring_key()



Use strchr() instead of strpbrk() when there is only 1 element in the set
of characters to look for.

This potentially saves a few cycles, but gcc does already account for
optimizing this pattern thanks to it's fold_builtin_strpbrk().

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 151d8122
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment