param style fix

This commit is contained in:
Lorenz Meier 2015-06-03 22:51:02 +02:00
parent 03bdf1e5f2
commit 3dbd48fbad
1 changed files with 31 additions and 27 deletions

View File

@ -304,6 +304,7 @@ param_count_used(void)
}
}
}
return count;
}
@ -311,9 +312,11 @@ param_t
param_for_index(unsigned index)
{
unsigned count = get_param_info_count();
if (count && index < count) {
return (param_t)index;
}
return PARAM_INVALID;
}
@ -321,6 +324,7 @@ param_t
param_for_used_index(unsigned index)
{
int count = get_param_info_count();
if (count && index < count) {
/* walk all params and count */