Remove dead variable assignments
Found by: clang static analyzer Verified by: md5(1)
This commit is contained in:
parent
ee4912eb07
commit
3ba5db25bb
@ -177,11 +177,10 @@ do_single(int argc, char **argv, int action)
|
||||
*/
|
||||
if (action == CCD_UNCONFIG || action == CCD_UNCONFIGALL) {
|
||||
ex = 0;
|
||||
for (i = 0; argc != 0; ) {
|
||||
for (; argc != 0;) {
|
||||
cp = *argv++; --argc;
|
||||
if ((ccd = resolve_ccdname(cp)) < 0) {
|
||||
warnx("invalid ccd name: %s", cp);
|
||||
i = 1;
|
||||
continue;
|
||||
}
|
||||
grq = gctl_get_handle();
|
||||
|
@ -750,7 +750,7 @@ main(int argc, char **argv)
|
||||
if (argc < 3)
|
||||
usage();
|
||||
|
||||
if ((i = modfind("g_bde")) < 0) {
|
||||
if (modfind("g_bde") < 0) {
|
||||
/* need to load the gbde module */
|
||||
if (kldload(GBDEMOD) < 0 || modfind("g_bde") < 0)
|
||||
err(1, GBDEMOD ": Kernel module not available");
|
||||
|
@ -249,7 +249,6 @@ getConfig(FILE *fd, char *key, char **Ar, int *nargs)
|
||||
switch(state) {
|
||||
case 0:
|
||||
if((p = strchr(lp, '{')) != NULL) {
|
||||
n = 0;
|
||||
while((--p > lp) && *p && isspace(*p));
|
||||
n = p - lp;
|
||||
if(len && strncmp(lp, key, MAX(n, len)) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user