Thread (6 messages) 6 messages, 3 authors, 2015-07-20

RE: drivers/net/phy/dp83867.c:167: possible bad if ?

flat view

From: David Binderman <hidden>
Date: 2015-07-20 18:00:26

Hello there,

----------------------------------------
The proposed fix is logically correct. And it matches the code for
phy_interface_is_rgmii with the '&&'.
As the original warning message indicates, I used compiler flag
-Wlogical-op to find this problem.

In order to detect this problem in future in your section of
the Linux kernel, it might be a wise idea to add compiler flag
-Wlogical-op to your builds.

If all goes well, this extra compiler flag should have nothing to say.

Just an idea.


Regards

David Binderman

 		 	   		  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help