As pointed out on current@, we don't want to declare a variable in a scope

that just uses the variable and throws it away.

This should fix the subsystem keyword wrt media-type.

MFC After: 2 days
This commit is contained in:
Warner Losh 2005-10-19 18:10:34 +00:00
parent 7aa5949375
commit de02eec866
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151480

View File

@ -233,7 +233,7 @@ media::do_match(config &c)
// to subsystem if none exists.
value = c.get_variable("device-name");
if (value.length() == 0)
string value = c.get_variable("subsystem");
value = c.get_variable("subsystem");
if (Dflag)
fprintf(stderr, "Testing media type of %s against 0x%x\n",
value.c_str(), _type);