]> 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)
commit82178a9992e572eb1386a09a3c45705ab072f517
tree35ed2a7fe182aeec9568b28d44eca54001522b5c
parent0ac03c942a5393ce66ff4162edce71ca22525c1e
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: 4e28a3181977 ("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