Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d08ca277 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

kconfig: unset IKCONFIG_PROC and clean up nesting



Due to cut and paste error IKCONFIG was both set and cleared.
It was suppose to be IKCONFIG_PROC to be cleared.

Also cleaned up if nesting.

Reported-by: default avatarAlan Jenkins <sourcejedi.lkml@googlemail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent cdfc4795
Loading
Loading
Loading
Loading
+3 −6
Original line number Original line Diff line number Diff line
@@ -323,7 +323,7 @@ while(<CIN>) {
	    # enable IKCONFIG at least as a module
	    # enable IKCONFIG at least as a module
	    print "CONFIG_IKCONFIG=m\n";
	    print "CONFIG_IKCONFIG=m\n";
	    # don't ask about PROC
	    # don't ask about PROC
	    print "# CONFIG_IKCONFIG is not set\n";
	    print "# CONFIG_IKCONFIG_PROC is not set\n";
	} else {
	} else {
	    print;
	    print;
	}
	}
@@ -333,15 +333,12 @@ while(<CIN>) {
    if (/^(CONFIG.*)=(m|y)/) {
    if (/^(CONFIG.*)=(m|y)/) {
	if (defined($configs{$1})) {
	if (defined($configs{$1})) {
	    $setconfigs{$1} = $2;
	    $setconfigs{$1} = $2;
	    print;
	} elsif ($2 eq "m") {
	} elsif ($2 eq "m") {
	    print "# $1 is not set\n";
	    print "# $1 is not set\n";
	} else {
	    next;
	    print;
	}
	}
    } else {
	print;
    }
    }
    print;
}
}
close(CIN);
close(CIN);