diff mbox

[CIFS] Elminate sparse __CHECK_ENDIAN__ warnings on port conversion

Message ID AANLkTikqyrPQX0_cyNA7=WP5d4OB1NX4J5R+GFPgKgvW@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Steve French March 13, 2011, 7 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 63ec77c..a98cb6f 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1493,7 +1493,7 @@  srcip_matches(struct sockaddr *srcaddr, struct
sockaddr *rhs)
 static bool
 match_port(struct TCP_Server_Info *server, struct sockaddr *addr)
 {
-	unsigned short int port, *sport;
+	__be16 port, *sport;

 	switch (addr->sa_family) {