Whamcloud - gitweb
LU-16118 build: Workaround __write_overflow_field errors
[fs/lustre-release.git] / lnet / include / uapi / linux / lnet / lnet-types.h
index c8a61ab..f515173 100644 (file)
@@ -145,8 +145,7 @@ static inline __u32 LNET_NID_NET(const struct lnet_nid *nid)
 static inline void lnet_nid4_to_nid(lnet_nid_t nid4, struct lnet_nid *nid)
 {
        if (nid4 == LNET_NID_ANY) {
-               /* equal to setting to LNET_ANY_NID */
-               memset(nid, 0xff, sizeof(*nid));
+               *nid = LNET_ANY_NID;
                return;
        }