Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169080
b: refs/heads/master
c: f066a4f
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Dec 2, 2009
1 parent ad8d255 commit 0de9599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86a7b7ef54650b99f7f638d6a6990fe7c0dfaaab
refs/heads/master: f066a4f6df68f03b565dfe867dde54dfeb26576e
11 changes: 3 additions & 8 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ early_param("loglevel", loglevel);

/*
* Unknown boot options get handed to init, unless they look like
* failed parameters
* unused parameters (modprobe will find them in /proc/cmdline).
*/
static int __init unknown_bootoption(char *param, char *val)
{
Expand All @@ -272,14 +272,9 @@ static int __init unknown_bootoption(char *param, char *val)
if (obsolete_checksetup(param))
return 0;

/*
* Preemptive maintenance for "why didn't my misspelled command
* line work?"
*/
if (strchr(param, '.') && (!val || strchr(param, '.') < val)) {
printk(KERN_ERR "Unknown boot option `%s': ignoring\n", param);
/* Unused module parameter. */
if (strchr(param, '.') && (!val || strchr(param, '.') < val))
return 0;
}

if (panic_later)
return 0;
Expand Down

0 comments on commit 0de9599

Please sign in to comment.