Skip to contentSkip to conversation

staging: lustre: changed __u32 to __be32

PATCH New Nikola Jelic 1 participant 1 message May 27, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: changed __u32 to __be32

Temporary variable is used only as __be32, for both assignments and reads, but the type is inconsistent (__u32).

---
 drivers/staging/lustre/lnet/lnet/lib-socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/lnet/lib-socket.c +1 -1
index 9fca8d225ee0..776f3c2fa486 100644
@@ -89,7 +89,7 @@ lnet_ipif_query(char *name, int *up, __u32 *ip, __u32 *mask)
 	struct ifreq ifr;
 	int nob;
 	int rc;
-	__u32 val;
+	__be32 val;
 
 	nob = strnlen(name, IFNAMSIZ);
 	if (nob == IFNAMSIZ) {
Signature · 1 line
2.11.0