staging: dwc2: remove useless cast
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Sat, 23 Nov 2013 00:43:50 +0000 (16:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:59:58 +0000 (11:59 -0800)
Remove useless cast in dwc2_get_otg_version()

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/core.c

index 82dbcf34b78da6904f2a9f6d5840b577fba27a0e..07b397412825c4544ed40d16558c393eadffbfc7 100644 (file)
@@ -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)