}
if (drex_ip < 0 || drex_ip > nr_drex || scen < 0 ||
- scen > nr_scen || qos < 0 || timeout < 0) {
+ scen > nr_scen || qos < 0 || qos > BTS_PRIORITY_MAX) {
pr_err("Invalid variable\n");
goto out;
}
}
if (drex_ip < 0 || drex_ip > nr_drex || scen < 0 ||
- scen > nr_scen || qos < 0 || threshold < 0) {
+ scen > nr_scen || qos < 0 || qos > BTS_PRIORITY_MAX) {
pr_err("Invalid variable\n");
goto out;
}
}
if (drex_pf_ip < 0 || drex_pf_ip > nr_drex_pf || scen < 0 ||
- scen > nr_scen || qos < 0 || timeout < 0) {
+ scen > nr_scen || qos < 0 || qos > BTS_PRIORITY_MAX) {
pr_err("Invalid variable\n");
goto out;
}