nfsd warning fix
fs/nfsd/nfsctl.c: In function 'write_filehandle': fs/nfsd/nfsctl.c:301: warning: 'maxsize' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu> Acked-by: Neil Brown <neilb@suse.de>
This commit is contained in:
parent
dd4877bfb6
commit
246d95ba05
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
|
||||||
* qword quoting is used, so filehandle will be \x....
|
* qword quoting is used, so filehandle will be \x....
|
||||||
*/
|
*/
|
||||||
char *dname, *path;
|
char *dname, *path;
|
||||||
int maxsize;
|
int uninitialized_var(maxsize);
|
||||||
char *mesg = buf;
|
char *mesg = buf;
|
||||||
int len;
|
int len;
|
||||||
struct auth_domain *dom;
|
struct auth_domain *dom;
|
||||||
|
|
Loading…
Reference in a new issue