OSDN Git Service

usb: dwc3: gadget: Fix dead code writing GCTL.RAMCLKSEL
authorJohn Youn <johnyoun@synopsys.com>
Fri, 11 Nov 2016 01:23:25 +0000 (17:23 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:17 +0000 (13:54 +0200)
commit5fb6fdaf38f71ad15ae85b1c4b4d94e8865e7284
treee14397a951e8b9efabb23ed0fd48599da5d87735
parent3c22037050aceddab0564b5f8e7bdec568c50efd
usb: dwc3: gadget: Fix dead code writing GCTL.RAMCLKSEL

The register programming code in dwc2_updated_ram_clk_sel() will never
be executed. And in fact the entire function can be removed as there is
no way to override the default value of GCTL.RAMCLKSEL. Remove the
function and add a comment explaining where GCTL.RAMCLKSEL should be
programmed if needed in the future.

This fixes dead code warnings in coverity.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c