staging: lustre: changed __u32 to __be32
authorNikola Jelic <nikola.jelic83@gmail.com>
Sat, 27 May 2017 21:37:28 +0000 (23:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 08:32:41 +0000 (17:32 +0900)
Temporary variable is used only as __be32, for both assignments and reads,
but the type is inconsistent (__u32).

Signed-off-by: Nikola Jelic <nikola.jelic83@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-socket.c

index 9fca8d2..776f3c2 100644 (file)
@@ -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) {