* [PATCH] net/sunrpc/auth_gss/gss_krb5_crypto.c: Use normal negative error value return
@ 2010-11-15 2:08 Joe Perches
2010-12-14 21:19 ` J. Bruce Fields
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2010-11-15 2:08 UTC (permalink / raw)
To: J. Bruce Fields, Neil Brown, Trond Myklebust, David S. Miller
Cc: linux-nfs, netdev, linux-kernel
And remove unnecessary double semicolon too.
No effect to code, as test is != 0.
Signed-off-by: Joe Perches <joe@perches.com>
---
net/sunrpc/auth_gss/gss_krb5_crypto.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sunrpc/auth_gss/gss_krb5_crypto.c b/net/sunrpc/auth_gss/gss_krb5_crypto.c
index 75ee993..9576f35 100644
--- a/net/sunrpc/auth_gss/gss_krb5_crypto.c
+++ b/net/sunrpc/auth_gss/gss_krb5_crypto.c
@@ -137,7 +137,7 @@ arcfour_hmac_md5_usage_to_salt(unsigned int usage, u8 salt[4])
ms_usage = 13;
break;
default:
- return EINVAL;;
+ return -EINVAL;
}
salt[0] = (ms_usage >> 0) & 0xff;
salt[1] = (ms_usage >> 8) & 0xff;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net/sunrpc/auth_gss/gss_krb5_crypto.c: Use normal negative error value return
2010-11-15 2:08 [PATCH] net/sunrpc/auth_gss/gss_krb5_crypto.c: Use normal negative error value return Joe Perches
@ 2010-12-14 21:19 ` J. Bruce Fields
2010-12-14 21:34 ` Trond Myklebust
0 siblings, 1 reply; 3+ messages in thread
From: J. Bruce Fields @ 2010-12-14 21:19 UTC (permalink / raw)
To: Joe Perches
Cc: Neil Brown, Trond Myklebust, David S. Miller, linux-nfs, netdev,
linux-kernel
On Sun, Nov 14, 2010 at 06:08:11PM -0800, Joe Perches wrote:
> And remove unnecessary double semicolon too.
>
> No effect to code, as test is != 0.
Hm, the error return's actually ignored. But OK. Applying to my tree
for 2.6.38 assuming nobody else has picked it up.
--b.
>
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> net/sunrpc/auth_gss/gss_krb5_crypto.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/sunrpc/auth_gss/gss_krb5_crypto.c b/net/sunrpc/auth_gss/gss_krb5_crypto.c
> index 75ee993..9576f35 100644
> --- a/net/sunrpc/auth_gss/gss_krb5_crypto.c
> +++ b/net/sunrpc/auth_gss/gss_krb5_crypto.c
> @@ -137,7 +137,7 @@ arcfour_hmac_md5_usage_to_salt(unsigned int usage, u8 salt[4])
> ms_usage = 13;
> break;
> default:
> - return EINVAL;;
> + return -EINVAL;
> }
> salt[0] = (ms_usage >> 0) & 0xff;
> salt[1] = (ms_usage >> 8) & 0xff;
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net/sunrpc/auth_gss/gss_krb5_crypto.c: Use normal negative error value return
2010-12-14 21:19 ` J. Bruce Fields
@ 2010-12-14 21:34 ` Trond Myklebust
0 siblings, 0 replies; 3+ messages in thread
From: Trond Myklebust @ 2010-12-14 21:34 UTC (permalink / raw)
To: J. Bruce Fields
Cc: Joe Perches, Neil Brown, David S. Miller, linux-nfs, netdev,
linux-kernel
On Tue, 2010-12-14 at 16:19 -0500, J. Bruce Fields wrote:
> On Sun, Nov 14, 2010 at 06:08:11PM -0800, Joe Perches wrote:
> > And remove unnecessary double semicolon too.
> >
> > No effect to code, as test is != 0.
>
> Hm, the error return's actually ignored. But OK. Applying to my tree
> for 2.6.38 assuming nobody else has picked it up.
There are also gems such as
u32 ret = -EINVAL;
Cheers
Trond
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-14 21:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15 2:08 [PATCH] net/sunrpc/auth_gss/gss_krb5_crypto.c: Use normal negative error value return Joe Perches
2010-12-14 21:19 ` J. Bruce Fields
2010-12-14 21:34 ` Trond Myklebust
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).