Commit cf2fe57b authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by David S. Miller

net: qualcomm: rmnet: Remove the rmnet_map_results enum

Only the success and consumed entries were actually in use.
Use standard error codes instead.
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4f70c3d
...@@ -142,11 +142,11 @@ static int rmnet_map_egress_handler(struct sk_buff *skb, ...@@ -142,11 +142,11 @@ static int rmnet_map_egress_handler(struct sk_buff *skb,
skb->protocol = htons(ETH_P_MAP); skb->protocol = htons(ETH_P_MAP);
return RMNET_MAP_SUCCESS; return 0;
fail: fail:
kfree_skb(skb); kfree_skb(skb);
return RMNET_MAP_CONSUMED; return -ENOMEM;
} }
static void static void
...@@ -213,17 +213,8 @@ void rmnet_egress_handler(struct sk_buff *skb) ...@@ -213,17 +213,8 @@ void rmnet_egress_handler(struct sk_buff *skb)
} }
if (port->egress_data_format & RMNET_EGRESS_FORMAT_MAP) { if (port->egress_data_format & RMNET_EGRESS_FORMAT_MAP) {
switch (rmnet_map_egress_handler(skb, port, mux_id, orig_dev)) { if (rmnet_map_egress_handler(skb, port, mux_id, orig_dev))
case RMNET_MAP_CONSUMED:
return; return;
case RMNET_MAP_SUCCESS:
break;
default:
kfree_skb(skb);
return;
}
} }
rmnet_vnd_tx_fixup(skb, orig_dev); rmnet_vnd_tx_fixup(skb, orig_dev);
......
...@@ -30,15 +30,6 @@ struct rmnet_map_control_command { ...@@ -30,15 +30,6 @@ struct rmnet_map_control_command {
}; };
} __aligned(1); } __aligned(1);
enum rmnet_map_results {
RMNET_MAP_SUCCESS,
RMNET_MAP_CONSUMED,
RMNET_MAP_GENERAL_FAILURE,
RMNET_MAP_NOT_ENABLED,
RMNET_MAP_FAILED_AGGREGATION,
RMNET_MAP_FAILED_MUX
};
enum rmnet_map_commands { enum rmnet_map_commands {
RMNET_MAP_COMMAND_NONE, RMNET_MAP_COMMAND_NONE,
RMNET_MAP_COMMAND_FLOW_DISABLE, RMNET_MAP_COMMAND_FLOW_DISABLE,
......
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