Skip to content

Commit

Permalink
nfs4: fix missing-braces warning
Browse files Browse the repository at this point in the history
A bugfix introduced a harmless warning for update_open_stateid:

fs/nfs/nfs4proc.c:1548:2: error: missing braces around initializer [-Werror=missing-braces]

Removing the zero in the initializer will do the right thing here
and initialize the entire structure to zero.

Fixes: 1393d96 ("NFSv4: Fix a race when updating an open_stateid")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
  • Loading branch information
arndb authored and amschuma-ntap committed Oct 19, 2016
1 parent a3f9d1b commit 83aa3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ static int update_open_stateid(struct nfs4_state *state,
struct nfs_client *clp = server->nfs_client;
struct nfs_inode *nfsi = NFS_I(state->inode);
struct nfs_delegation *deleg_cur;
nfs4_stateid freeme = {0};
nfs4_stateid freeme = { };
int ret = 0;

fmode &= (FMODE_READ|FMODE_WRITE);
Expand Down

0 comments on commit 83aa3e0

Please sign in to comment.