From af3d75dacdc8f8f90e9e32445d4347516d4ed9e2 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Thu, 19 Jul 2001 19:03:38 +0000 Subject: remove unused variable --- isys/devnodes.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'isys') diff --git a/isys/devnodes.c b/isys/devnodes.c index 4d47a6f8c..4e72d3b25 100644 --- a/isys/devnodes.c +++ b/isys/devnodes.c @@ -164,27 +164,27 @@ int devMakeInode(char * devName, char * path) { minor += devName[3] - '1'; } else if (!strncmp(devName, "rd/", 3)) { /* dac 960 "/rd/c0d0{p1}" */ - int rc, c, d, p; + int c, d, p; c = d = p = 0; - rc = sscanf(devName + 3, "c%dd%dp%d", &c, &d, &p); + sscanf(devName + 3, "c%dd%dp%d", &c, &d, &p); type = S_IFBLK; major = 48 + c; /* controller */ minor = d * 8; /* disk */ minor += p; /* partition */ } else if (!strncmp(devName, "ida/", 4)) { /* Compaq Smart Array "ida/c0d0{p1} */ - int rc, c, d, p; + int c, d, p; c = d = p = 0; - rc = sscanf(devName + 4, "c%dd%dp%d", &c, &d, &p); + sscanf(devName + 4, "c%dd%dp%d", &c, &d, &p); type = S_IFBLK; major = 72 + c; /* controller */ minor = d * 16; /* disk */ minor += p; /* partition */ } else if (!strncmp(devName, "cciss/", 6)) { /* Compaq Smart Array 5300 "cciss/c0d0{p1} */ - int rc, c, d, p; + int c, d, p; c = d = p = 0; - rc = sscanf(devName + 6, "c%dd%dp%d", &c, &d, &p); + sscanf(devName + 6, "c%dd%dp%d", &c, &d, &p); type = S_IFBLK; major = 104 + c; /* controller */ minor = d * 16; /* disk */ -- cgit