KEYS: Make the key matching functions return bool

Make the key matching functions pointed to by key_match_data::cmp return bool
rather than int.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
David Howells
2014-09-16 17:36:08 +01:00
parent c06cfb08b8
commit 0c903ab64f
6 changed files with 18 additions and 16 deletions

View File

@@ -489,8 +489,8 @@ found:
/*
* See if the key we're looking at is the target key.
*/
int lookup_user_key_possessed(const struct key *key,
const struct key_match_data *match_data)
bool lookup_user_key_possessed(const struct key *key,
const struct key_match_data *match_data)
{
return key == match_data->raw_data;
}