diff options
author | Ahmad Fatoum <[email protected]> | 2020-06-11 21:17:46 +0200 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2020-08-05 18:42:53 +0200 |
commit | 5edc8c687357b40469d90e3dab0b59b72eaabf59 (patch) | |
tree | 972ff9be0adb3ece1e79d70ed752339057bc28d6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4f39d575844148fbf3081571a1f3b4ae04150958 (diff) |
watchdog: f71808e_wdt: do stricter parameter validation
We check the f71862fg_pin module parameter every time a watchdog device
for the f71862fg is opened, but the parameter can't change at runtime.
If we move the check to the start of init:
- We catch userspace passing invalid, but unused, values
- We check the condition only once
- We simplify the code
Do so.
Signed-off-by: Ahmad Fatoum <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions