[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <96657eff83195fba1762cb046b3f15d337e5daad.camel@hammerspace.com>
Date: Sun, 29 Nov 2020 16:42:46 +0000
From: Trond Myklebust <trondmy@...merspace.com>
To: "bfields@...ldses.org" <bfields@...ldses.org>,
"kuba@...nel.org" <kuba@...nel.org>,
"anna.schumaker@...app.com" <anna.schumaker@...app.com>,
"trix@...hat.com" <trix@...hat.com>,
"chuck.lever@...cle.com" <chuck.lever@...cle.com>,
"davem@...emloft.net" <davem@...emloft.net>
CC: "linux-nfs@...r.kernel.org" <linux-nfs@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] NFS: remove trailing semicolon in macro definition
Hi Tom,
On Fri, 2020-11-27 at 11:43 -0800, trix@...hat.com wrote:
> From: Tom Rix <trix@...hat.com>
>
> The macro use will already have a semicolon.
>
> Signed-off-by: Tom Rix <trix@...hat.com>
> ---
> net/sunrpc/auth_gss/gss_generic_token.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/sunrpc/auth_gss/gss_generic_token.c
> b/net/sunrpc/auth_gss/gss_generic_token.c
> index fe97f3106536..9ae22d797390 100644
> --- a/net/sunrpc/auth_gss/gss_generic_token.c
> +++ b/net/sunrpc/auth_gss/gss_generic_token.c
> @@ -46,7 +46,7 @@
> /* TWRITE_STR from gssapiP_generic.h */
> #define TWRITE_STR(ptr, str, len) \
> memcpy((ptr), (char *) (str), (len)); \
> - (ptr) += (len);
> + (ptr) += (len)
>
> /* XXXX this code currently makes the assumption that a mech oid
> will
> never be longer than 127 bytes. This assumption is not inherent
> in
There is exactly 1 use of this macro in the code AFAICS. Can we please
just get rid of it, and make the code trivially easier to read?
Thanks
Trond
--
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trond.myklebust@...merspace.com
Powered by blists - more mailing lists