2021-11-03 09:26:49

by Austin Kim

[permalink] [raw]
Subject: [PATCH] apparmor: remove duplicated 'Returns:' comments

It might look better if duplicated 'Returns:' comment is removed.

Signed-off-by: Austin Kim <[email protected]>
---
security/apparmor/procattr.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/security/apparmor/procattr.c b/security/apparmor/procattr.c
index c929bf4a3df1..fde332e0ea7d 100644
--- a/security/apparmor/procattr.c
+++ b/security/apparmor/procattr.c
@@ -21,8 +21,6 @@
* @profile: the profile to print profile info about (NOT NULL)
* @string: Returns - string containing the profile info (NOT NULL)
*
- * Returns: length of @string on success else error on failure
- *
* Requires: profile != NULL
*
* Creates a string containing the namespace_name://profile_name for
--
2.20.1


2021-11-12 01:25:51

by John Johansen

[permalink] [raw]
Subject: Re: [PATCH] apparmor: remove duplicated 'Returns:' comments

On 11/3/21 2:25 AM, Austin Kim wrote:
> It might look better if duplicated 'Returns:' comment is removed.
>
> Signed-off-by: Austin Kim <[email protected]>

sorry, it looks like I forgot to reply to this. I pulled this into the
apparmor tree and it has been merged for 5.16

> ---
> security/apparmor/procattr.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/security/apparmor/procattr.c b/security/apparmor/procattr.c
> index c929bf4a3df1..fde332e0ea7d 100644
> --- a/security/apparmor/procattr.c
> +++ b/security/apparmor/procattr.c
> @@ -21,8 +21,6 @@
> * @profile: the profile to print profile info about (NOT NULL)
> * @string: Returns - string containing the profile info (NOT NULL)
> *
> - * Returns: length of @string on success else error on failure
> - *
> * Requires: profile != NULL
> *
> * Creates a string containing the namespace_name://profile_name for
>