2020-07-17 23:38:07

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] LSM: drop duplicated words in header file comments

From: Randy Dunlap <[email protected]>

Drop the doubled words "the" and "and" in comments.

Signed-off-by: Randy Dunlap <[email protected]>
Cc: James Morris <[email protected]>
Cc: "Serge E. Hallyn" <[email protected]>
Cc: [email protected]
---
include/linux/lsm_hook_defs.h | 2 +-
include/linux/lsm_hooks.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20200714.orig/include/linux/lsm_hook_defs.h
+++ linux-next-20200714/include/linux/lsm_hook_defs.h
@@ -15,7 +15,7 @@
*/

/*
- * The macro LSM_HOOK is used to define the data structures required by the
+ * The macro LSM_HOOK is used to define the data structures required by
* the LSM framework using the pattern:
*
* LSM_HOOK(<return_type>, <default_value>, <hook_name>, args...)
--- linux-next-20200714.orig/include/linux/lsm_hooks.h
+++ linux-next-20200714/include/linux/lsm_hooks.h
@@ -822,7 +822,7 @@
* structure. Note that the security field was not added directly to the
* socket structure, but rather, the socket security information is stored
* in the associated inode. Typically, the inode alloc_security hook will
- * allocate and and attach security information to
+ * allocate and attach security information to
* SOCK_INODE(sock)->i_security. This hook may be used to update the
* SOCK_INODE(sock)->i_security field with additional information that
* wasn't available when the inode was allocated.



2020-07-18 03:00:25

by Serge E. Hallyn

[permalink] [raw]
Subject: Re: [PATCH] LSM: drop duplicated words in header file comments

On Fri, Jul 17, 2020 at 04:36:40PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <[email protected]>
>
> Drop the doubled words "the" and "and" in comments.
>
> Signed-off-by: Randy Dunlap <[email protected]>
> Cc: James Morris <[email protected]>
> Cc: "Serge E. Hallyn" <[email protected]>

Acked-by: Serge Hallyn <[email protected]>

> Cc: [email protected]
> ---
> include/linux/lsm_hook_defs.h | 2 +-
> include/linux/lsm_hooks.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> --- linux-next-20200714.orig/include/linux/lsm_hook_defs.h
> +++ linux-next-20200714/include/linux/lsm_hook_defs.h
> @@ -15,7 +15,7 @@
> */
>
> /*
> - * The macro LSM_HOOK is used to define the data structures required by the
> + * The macro LSM_HOOK is used to define the data structures required by
> * the LSM framework using the pattern:
> *
> * LSM_HOOK(<return_type>, <default_value>, <hook_name>, args...)
> --- linux-next-20200714.orig/include/linux/lsm_hooks.h
> +++ linux-next-20200714/include/linux/lsm_hooks.h
> @@ -822,7 +822,7 @@
> * structure. Note that the security field was not added directly to the
> * socket structure, but rather, the socket security information is stored
> * in the associated inode. Typically, the inode alloc_security hook will
> - * allocate and and attach security information to
> + * allocate and attach security information to
> * SOCK_INODE(sock)->i_security. This hook may be used to update the
> * SOCK_INODE(sock)->i_security field with additional information that
> * wasn't available when the inode was allocated.
>

2020-07-27 19:19:02

by James Morris

[permalink] [raw]
Subject: Re: [PATCH] LSM: drop duplicated words in header file comments

On Fri, 17 Jul 2020, Randy Dunlap wrote:

> From: Randy Dunlap <[email protected]>
>
> Drop the doubled words "the" and "and" in comments.
>
> Signed-off-by: Randy Dunlap <[email protected]>

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general


--
James Morris
<[email protected]>