net: phy: mscc: fix excluded_middle.cocci warnings
Subsystems (2)
PATCH 1/1 net: phy: mscc: fix excluded_middle.cocci warnings
From: kernel test robot <[email protected]>
Condition !A || A && B is equivalent to !A || B.
Generated by: scripts/coccinelle/misc/excluded_middle.cocci
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e28c0d7c92c89016c12a677616668957351e7542 commit: b76f0ea013125358d1b4ca147a6f9b6883dd2493 coccinelle: misc: add excluded_middle.cocci script
:::::: branch date: 8 hours ago
:::::: commit date: 8 weeks ago
Please take the patch only if it's a positive warning. Thanks!
mscc_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/mscc/mscc_ptp.c +1 -1
@@ -136,7 +136,7 @@ static void vsc85xx_ts_write_csr(structphy_ts_base_write (phydev,MSCC_EXT_PAGE_ACCESS ,MSCC_PHY_PAGE_1588 ); -if (!cond || (cond && upper)) +if (!cond || upper)phy_ts_base_write (phydev,MSCC_PHY_TS_CSR_DATA_MSB , upper);phy_ts_base_write (phydev,MSCC_PHY_TS_CSR_DATA_LSB , lower);
Jakub Kicinski
maintainerQuoted 11 lines · On Sun, 15 Nov 2020 19:37:59 +0100 (CET) Julia Lawall wrote:
From: kernel test robot <[email protected]>
Condition !A || A && B is equivalent to !A || B.
Generated by:
scripts/coccinelle/misc/excluded_middle.cocciFixes b76f0ea01312 ("coccinelle: misc: add excluded_middle.cocci script")CC Denis Efremov <[email protected]>Reported-by kernel test robot <[email protected]>Signed-off-by kernel test robot <[email protected]>Signed-off-by Julia Lawall <[email protected]>
cc netdev plz!
Quoted 7 lines · Jakub Kicinski
Quoted 6 lines · On Sun, 15 Nov 2020 19:37:59 +0100 (CET) Julia Lawall wrote:
From: kernel test robot <[email protected]>
Condition !A || A && B is equivalent to !A || B.
Generated by:
scripts/coccinelle/misc/excluded_middle.cocci
Quoted 7 lines
Quoted 5 lines
Fixes b76f0ea01312 ("coccinelle: misc: add excluded_middle.cocci script")CC Denis Efremov <[email protected]>Reported-by kernel test robot <[email protected]>Signed-off-by kernel test robot <[email protected]>Signed-off-by Julia Lawall <[email protected]>cc netdev plz!
OK, I will send it again. I sent it to everyone in the list generated by 0-day. I don't know how they calculate the list, though.
julia