diff options
author | 2023-01-28 16:43:00 +0100 | |
---|---|---|
committer | 2023-02-02 14:26:09 -0500 | |
commit | fc772580a349f2b1349e85629be97e59f6347cdb (patch) | |
tree | 26bfd51aeaf43305915db7f41d36363531aab06a /drivers/md/dm-raid.c | |
parent | dm ioctl: drop always-false condition (diff) | |
download | linux-rng-fc772580a349f2b1349e85629be97e59f6347cdb.tar.xz linux-rng-fc772580a349f2b1349e85629be97e59f6347cdb.zip |
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-raid.c')
0 files changed, 0 insertions, 0 deletions