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)
if (!options || !*options)
return 0;
for(this_opt=strtok(options, ",");
this_opt; this_opt=strtok(NULL, ",")) {
while (this_opt = strsep(&options, ",")) {
if (!*this_opt)
continue;
if (!strncmp(this_opt, "vra", 3)) {
vra = 1;
}
......
......@@ -2237,8 +2237,9 @@ static int __init it8172_setup(char *options)
if (!options || !*options)
return 0;
for(this_opt=strtok(options, ",");
this_opt; this_opt=strtok(NULL, ",")) {
while (this_opt = strsep(&options, ",")) {
if (!*this_opt)
continue;
if (!strncmp(this_opt, "spdif", 5)) {
spdif[nr_dev] = 1;
} 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