提交 b66a3f05 编写于 作者: P Paul Zimmerman 提交者: Greg Kroah-Hartman

staging: dwc2: remove useless cast

Remove useless cast in dwc2_get_otg_version()
Signed-off-by: NPaul Zimmerman <paulz@synopsys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c17d482d
...@@ -2733,7 +2733,7 @@ void dwc2_set_parameters(struct dwc2_hsotg *hsotg, ...@@ -2733,7 +2733,7 @@ void dwc2_set_parameters(struct dwc2_hsotg *hsotg,
u16 dwc2_get_otg_version(struct dwc2_hsotg *hsotg) u16 dwc2_get_otg_version(struct dwc2_hsotg *hsotg)
{ {
return (u16)(hsotg->core_params->otg_ver == 1 ? 0x0200 : 0x0103); return hsotg->core_params->otg_ver == 1 ? 0x0200 : 0x0103;
} }
int dwc2_check_core_status(struct dwc2_hsotg *hsotg) int dwc2_check_core_status(struct dwc2_hsotg *hsotg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册