Skip to content

Commit 8c8e3df

Browse files
tobluxjarkkojs
authored andcommitted
keys: Fix grammar and formatting in 'struct key_type' comments
s/it/if/ and s/revokation/revocation/, capitalize "clear", and add a period after the sentence. Fix the comment formatting. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
1 parent a0a76e3 commit 8c8e3df

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

include/linux/key-type.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,14 @@ struct key_type {
107107
*/
108108
int (*match_preparse)(struct key_match_data *match_data);
109109

110-
/* Free preparsed match data (optional). This should be supplied it
111-
* ->match_preparse() is supplied. */
110+
/*
111+
* Free preparsed match data (optional). This should be supplied if
112+
* ->match_preparse() is supplied.
113+
*/
112114
void (*match_free)(struct key_match_data *match_data);
113115

114-
/* clear some of the data from a key on revokation (optional)
116+
/*
117+
* Clear some of the data from a key on revocation (optional).
115118
* - the key's semaphore will be write-locked by the caller
116119
*/
117120
void (*revoke)(struct key *key);

0 commit comments

Comments
 (0)