diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-19 19:03:38 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-19 19:03:38 +0000 |
commit | af3d75dacdc8f8f90e9e32445d4347516d4ed9e2 (patch) | |
tree | c5bfb272bcfb8dd4c951a819d553ed333c1952ea /isys | |
parent | 3802bdefdd62b5d7a8728c5b8c85be873d983827 (diff) | |
download | anaconda-af3d75dacdc8f8f90e9e32445d4347516d4ed9e2.tar.gz anaconda-af3d75dacdc8f8f90e9e32445d4347516d4ed9e2.tar.xz anaconda-af3d75dacdc8f8f90e9e32445d4347516d4ed9e2.zip |
remove unused variable
Diffstat (limited to 'isys')
-rw-r--r-- | isys/devnodes.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 */ |