Commit 3595321e authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: convert strtok to strsep (sound/oss)

From: maximilian attems <janitor@sternwelten.at>

convert two missed strtok to strsep (sound/oss)
parent c4fa5da7
...@@ -2222,8 +2222,9 @@ static int __init au1000_setup(char *options) ...@@ -2222,8 +2222,9 @@ static int __init au1000_setup(char *options)
if (!options || !*options) if (!options || !*options)
return 0; return 0;
for(this_opt=strtok(options, ","); while (this_opt = strsep(&options, ",")) {
this_opt; this_opt=strtok(NULL, ",")) { if (!*this_opt)
continue;
if (!strncmp(this_opt, "vra", 3)) { if (!strncmp(this_opt, "vra", 3)) {
vra = 1; vra = 1;
} }
......
...@@ -2237,8 +2237,9 @@ static int __init it8172_setup(char *options) ...@@ -2237,8 +2237,9 @@ static int __init it8172_setup(char *options)
if (!options || !*options) if (!options || !*options)
return 0; return 0;
for(this_opt=strtok(options, ","); while (this_opt = strsep(&options, ",")) {
this_opt; this_opt=strtok(NULL, ",")) { if (!*this_opt)
continue;
if (!strncmp(this_opt, "spdif", 5)) { if (!strncmp(this_opt, "spdif", 5)) {
spdif[nr_dev] = 1; spdif[nr_dev] = 1;
} else if (!strncmp(this_opt, "i2s:", 4)) { } else if (!strncmp(this_opt, "i2s:", 4)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment