]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[IPX]: Correct return type of ipx_map_frame_type().
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 24 Nov 2006 01:56:20 +0000 (02:56 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 24 Nov 2006 01:56:20 +0000 (02:56 +0100)
Casting BE16 to int and back may or may not work. Correct, to be sure.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipx/af_ipx.c

index 0fb513a34d11acc84f239545faa65b9a9a0eb9da..2b72248022d8e7834b49ccd5e1441a3ddfebea5f 100644 (file)
@@ -944,9 +944,9 @@ out:
        return rc;
 }
 
-static int ipx_map_frame_type(unsigned char type)
+static __be16 ipx_map_frame_type(unsigned char type)
 {
-       int rc = 0;
+       __be16 rc = 0;
 
        switch (type) {
        case IPX_FRAME_ETHERII: rc = htons(ETH_P_IPX);          break;