提交 fa74d136 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: ni_tio: remove BUG() in ni_tio_set_gate_src()

This BUG() can never happen. The previous ni_tio_has_gate2_registers()
check will have already caused the function to return -EINVAL.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 592ef9fb
...@@ -1020,8 +1020,7 @@ int ni_tio_set_gate_src(struct ni_gpct *counter, ...@@ -1020,8 +1020,7 @@ int ni_tio_set_gate_src(struct ni_gpct *counter,
case ni_gpct_variant_660x: case ni_gpct_variant_660x:
return ni_660x_set_gate2(counter, src); return ni_660x_set_gate2(counter, src);
default: default:
BUG(); return -EINVAL;
break;
} }
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册