From: Andrew Morton Date: Thu, 9 Aug 2007 07:53:50 +0000 (-0700) Subject: nfsd warning fix X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=246d95ba051101e515670a1cbe2907a88d360b88;p=linux-beck.git 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 Signed-off-by: "J. Bruce Fields" Acked-by: Neil Brown --- diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index d135f5f98519..77dc9893b7ba 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -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.... */ char *dname, *path; - int maxsize; + int uninitialized_var(maxsize); char *mesg = buf; int len; struct auth_domain *dom;