]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA
authorColin Ian King <colin.king@canonical.com>
Tue, 27 Aug 2019 08:16:20 +0000 (09:16 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:44:02 +0000 (16:44 +0300)
commit169b223ad17795cb31c418ab7ee94d8b9a341e27
tree35ed2a7fe182aeec9568b28d44eca54001522b5c
parentc5aa9f39074567a85db5a2b7cf2025a93008c266
bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA

An earlier commit re-worked the setting of the bitmask and is now
assigning v with some bit flags rather than bitwise or-ing them
into v, consequently the earlier bit-settings of v are being lost.
Fix this by replacing an assignment with the bitwise or instead.

Addresses-Coverity: ("Unused value")
Fixes: f6e88a8d489d ("bcma: add constants for PCI and use them")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/bcma/driver_pci.c