From: Dave Chinner Date: Thu, 25 Oct 2012 06:22:30 +0000 (+1100) Subject: xfs: silence uninitialised f.file warning. X-Git-Tag: MMI-PSA29.97-13-9~15411^2~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=531c3bdc8662e1a83f8ec80dc3346b1284877c0a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git xfs: silence uninitialised f.file warning. Uninitialised variable build warning introduced by 2903ff0 ("switch simple cases of fget_light to fdget"), gcc is not smart enough to work out that the variable is not used uninitialised, and the commit removed the initialisation at declaration that the old variable had. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 8305f2ac6773..c1df3c623de2 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -70,7 +70,7 @@ xfs_find_handle( int hsize; xfs_handle_t handle; struct inode *inode; - struct fd f; + struct fd f = {0}; struct path path; int error; struct xfs_inode *ip;