From: Paul Zimmerman Date: Sat, 23 Nov 2013 00:43:50 +0000 (-0800) Subject: staging: dwc2: remove useless cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b66a3f057332075bc4cf6f8d1f91a5bb87b6e761;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: dwc2: remove useless cast Remove useless cast in dwc2_get_otg_version() Signed-off-by: Paul Zimmerman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dwc2/core.c b/drivers/staging/dwc2/core.c index 82dbcf34b78d..07b397412825 100644 --- a/drivers/staging/dwc2/core.c +++ b/drivers/staging/dwc2/core.c @@ -2733,7 +2733,7 @@ void dwc2_set_parameters(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)