mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 08:46:14 +07:00
[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 <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
53d42f5412
commit
4ac396c046
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user