aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-pci-wrap.c
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-08-19 07:42:34 +0000
committerFelipe Balbi <[email protected]>2019-08-28 10:04:59 +0000
commitf1b19006f4c9e83c9e19c58102157ff1fdebca22 (patch)
tree2511c9093de45a5dde22c3a12f9ae0e9f1ccd609 /drivers/usb/cdns3/cdns3-pci-wrap.c
parentusb: udc: lpc32xx: silence fall-through warning (diff)
downloadkernel-f1b19006f4c9e83c9e19c58102157ff1fdebca22.tar.gz
kernel-f1b19006f4c9e83c9e19c58102157ff1fdebca22.zip
usb: phy: phy-fsl-usb: Make structure fsl_otg_initdata constant
Static structure fsl_otg_initdata, of type fsl_otg_config, is used only once, when the value of its field otg_port is assigned to another variable. As fsl_otg_initdata.otg_port is of type u8, any changes to its copy do not affect the original, and fsl_otg_initdata itself is never modified. Hence make fsl_otg_initdata constant to protect it from unintended modification. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions