Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 367156d9 authored by Anna Schumaker's avatar Anna Schumaker Committed by Trond Myklebust
Browse files

NFS: Give "flavor" an initial value to fix a compile warning



The previous patch introduces a compile warning by not assigning an initial
value to the "flavor" variable.  This could only be a problem if the server
returns a supported secflavor list of length zero, but it's better to
fix this before it's ever hit.

Signed-off-by: default avatarAnna Schumaker <bjschuma@netapp.com>
Acked-by: default avatarWeston Andros Adamson <dros@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 58a8cf12
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7576,7 +7576,7 @@ nfs41_find_root_sec(struct nfs_server *server, struct nfs_fh *fhandle,
{
	int err;
	struct page *page;
	rpc_authflavor_t flavor;
	rpc_authflavor_t flavor = RPC_AUTH_MAXFLAVOR;
	struct nfs4_secinfo_flavors *flavors;
	struct nfs4_secinfo4 *secinfo;
	int i;