projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git://git.denx.de/u-boot-usb
[oweals/u-boot.git]
/
include
/
generic-phy.h
diff --git
a/include/generic-phy.h
b/include/generic-phy.h
index 947c582f68b1f07e9d22f03de85328fcc7e9b873..95caf583413ce303c17662911060b7e7355feba1 100644
(file)
--- a/
include/generic-phy.h
+++ b/
include/generic-phy.h
@@
-270,7
+270,7
@@
static inline int generic_phy_get_by_name(struct udevice *user, const char *phy_
*/
static inline bool generic_phy_valid(struct phy *phy)
{
- return phy
->dev != NULL
;
+ return phy
&& phy->dev
;
}
#endif /*__GENERIC_PHY_H */