From: Alexey Dobriyan Date: Tue, 16 May 2006 22:17:49 +0000 (-0700) Subject: [IPX]: Correct return type of ipx_map_frame_type(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ac396c0467993853d3d58c0975151515700c07b;p=linux-beck.git [IPX]: Correct return type of ipx_map_frame_type(). Casting BE16 to int and back may or may not work. Correct, to be sure. Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c index 2dbf134d5266..811d998725bc 100644 --- a/net/ipx/af_ipx.c +++ b/net/ipx/af_ipx.c @@ -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;