Commit a06ee75a authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Adrian Bunk

[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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent c0235754
......@@ -944,9 +944,9 @@ static int ipxitf_create_internal(struct ipx_interface_definition *idef)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment