diff options
author | Wolfram Sang <[email protected]> | 2019-04-19 20:15:46 +0200 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2019-05-05 21:04:58 +0200 |
commit | 34ef4087a1d50f5481732ad85544362516e8185f (patch) | |
tree | 3d36d748bdfa21c2ed450a7c5fea3b57afdea562 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e18431264954247f76a8e7aeac3b68421e35e65a (diff) |
watchdog: refactor watchdog_init_timeout
The function is not easy to read and has a problem: -EINVAL is returned
when the module parameter is invalid but the DT parameter is OK.
Refactor the code to have the same pattern of checks for the module
parameter and DT. Further ones can be easily added in the future if the
need arises. The above mentioned problem is fixed, too.
Some documentation is added to describe the different handlings of '0'
for the module parameter and the DT property.
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions