]> Zhao Yanbai Git Server - minix.git/commitdiff
vfs:fix for variable 'rfp' set but not used. 56/156/2
authorKees Jongenburger <keesj@minix3.org>
Wed, 2 Jan 2013 16:33:16 +0000 (17:33 +0100)
committerKees Jongenburger <keesj@minix3.org>
Mon, 7 Jan 2013 08:12:27 +0000 (09:12 +0100)
mount.c: In function 'mount_pfs':
mount.c:395:17: error: variable 'rfp' set but not used [-Werror=unused-but-set-variable]

Change-Id: I2f22590ab4e3a4a1678e9096626ebca53d2660e6

servers/vfs/mount.c

index e9354bb309b24f3dfae522fc1931aeb8e604624d..a91a90ec72544b03ba76028f71206b2ba59730c7 100644 (file)
@@ -395,7 +395,6 @@ void mount_pfs(void)
 
   dev_t dev;
   struct vmnt *vmp;
-  struct fproc *rfp;
 
   if ((dev = find_free_nonedev()) == NO_DEV)
        panic("VFS: no nonedev to initialize PFS");
@@ -410,8 +409,6 @@ void mount_pfs(void)
   strlcpy(vmp->m_label, "pfs", LABEL_MAX);
   strlcpy(vmp->m_mount_path, "pipe", PATH_MAX);
   strlcpy(vmp->m_mount_dev, "none", PATH_MAX);
-
-  rfp = &fproc[_ENDPOINT_P(PFS_PROC_NR)];
 }
 
 /*===========================================================================*