diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-08-19 13:09:46 +0530 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2019-08-21 11:45:14 +0100 |
commit | 5ae6393e6d41c7cc38c1ce679bc91c475412c624 (patch) | |
tree | 186f32a2dc04daaca59cef011871c99c38c8c584 /drivers/pci/vpd.c | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) | |
download | linux-5ae6393e6d41c7cc38c1ce679bc91c475412c624.tar.gz linux-5ae6393e6d41c7cc38c1ce679bc91c475412c624.tar.bz2 linux-5ae6393e6d41c7cc38c1ce679bc91c475412c624.zip |
PCI: kirin: Make structure kirin_dw_pcie_ops constant
Static variable kirin_dw_pcie_ops, of type dw_pcie_ops, is used only
once, when it is assigned to the constant field ops of variable pci
(having type dw_pcie) so kirin_dw_pcie_ops is never modified.
Make it constant to protect it from unintended modification.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Diffstat (limited to 'drivers/pci/vpd.c')
0 files changed, 0 insertions, 0 deletions