All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <steved@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: [PATCH 4/4] acl_nfs4_get_who: removed an always false evaluate warning
Date: Thu, 16 Jun 2022 16:29:02 -0400	[thread overview]
Message-ID: <20220616202902.53969-4-steved@redhat.com> (raw)
In-Reply-To: <20220616202902.53969-1-steved@redhat.com>

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 libnfs4acl/acl_nfs4_get_who.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libnfs4acl/acl_nfs4_get_who.c b/libnfs4acl/acl_nfs4_get_who.c
index 695db2e..3e2fd7c 100644
--- a/libnfs4acl/acl_nfs4_get_who.c
+++ b/libnfs4acl/acl_nfs4_get_who.c
@@ -49,7 +49,7 @@ int acl_nfs4_get_who(struct nfs4_ace* ace, int* type, char** who)
 	char* iwho = NULL;
 	int wholen;
 
-	if (ace == NULL || ace->who == NULL)
+	if (ace == NULL)
 		goto inval_failed;
 
 	itype = acl_nfs4_get_whotype(ace->who);
-- 
2.36.1


  parent reply	other threads:[~2022-06-16 20:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-16 20:28 [PATCH 1/4] Makefile: Added the creation of config.guess and config.sub Steve Dickson
2022-06-16 20:29 ` [PATCH 2/4] configure.ac: Removed a number warnings Steve Dickson
2022-06-16 20:29 ` [PATCH 3/4] nfs4_print_ace_verbose: Removed a differ in signedness warning Steve Dickson
2022-06-16 20:29 ` Steve Dickson [this message]
2022-06-21 13:09 ` [PATCH 1/4] Makefile: Added the creation of config.guess and config.sub Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220616202902.53969-4-steved@redhat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.