NFS: Give "flavor" an initial value to fix a compile warning
Subsystems (2)
PATCH 1/1 NFS: Give "flavor" an initial value to fix a compile warning
From: Anna Schumaker <[email protected]>
cd3c993 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 Anna Schumaker <[email protected]>
--- fs/nfs/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4proc.c +1 -1
@@ -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;
Signature · 1 line
1.8.4
Quoted 8 lines · On Sep 25, 2013, at 5:02 PM, [email protected] wrote:
From: Anna Schumaker <[email protected]>
cd3c993 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 Anna Schumaker <[email protected]>
Thanks!
-dros
Quoted 24 lines
---
fs/nfs/nfs4proc.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)fs/nfs/nfs4proc.c +1
-1@@ -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;Signature · 6 lines
1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html