[PATCH 20/30] xfree86/os-support: Stop setting n for nothing.

Cyril Brulebois kibi at debian.org
Fri May 20 08:35:30 PDT 2011


Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 hw/xfree86/os-support/linux/lnx_kmod.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/xfree86/os-support/linux/lnx_kmod.c b/hw/xfree86/os-support/linux/lnx_kmod.c
index 0b9493d..6f27cfc 100644
--- a/hw/xfree86/os-support/linux/lnx_kmod.c
+++ b/hw/xfree86/os-support/linux/lnx_kmod.c
@@ -40,7 +40,7 @@ int
 xf86LoadKernelModule(const char *modName)
 {
    char mpPath[MAX_PATH] = "";
-   int fd = -1, status, n;
+   int fd = -1, status;
    pid_t pid;
 
    /* get the path to the modprobe program */
@@ -78,7 +78,7 @@ xf86LoadKernelModule(const char *modName)
 		 "Setting of real/effective user Id to 0/0 failed");
       }
       setenv("PATH","/sbin",1);
-      n = execl(mpPath, "modprobe", modName, NULL);
+      execl(mpPath, "modprobe", modName, NULL);
       xf86Msg(X_WARNING,"LoadKernelModule %s\n",strerror(errno));
       exit(EXIT_FAILURE);  /* if we get here the child's exec failed */
       break;
-- 
1.7.5.1



More information about the xorg-devel mailing list