diff options
| author | H Hartley Sweeten <[email protected]> | 2016-03-23 15:37:01 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-03-28 07:30:36 -0700 |
| commit | 475ea1ed14cce2608ed0f12474be2a3d75880eaf (patch) | |
| tree | 53406fb21ef349720c87e31b11081826fe60a62a /tools/perf/scripts/python/syscall-counts.py | |
| parent | d87f5e90585a8b8646c3e9fe92d4c47716f5e19d (diff) | |
staging: comedi: ni_tio: remove BUG() checks for ni_tio_get_gate_src()
This function calls some helper functions to convert the counter variant
specific gate select bits into the generic enum ni_gpct_clock_source_bits
equivelent. These helper functions currently BUG() if the gate select
bits are invalid.
This should never happen but refactor the code to return -EINVAL instead
and remove the BUG() checks.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions