summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
diff options
context:
space:
mode:
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>2017-12-12 03:30:10 +0300
committerDavid S. Miller <davem@davemloft.net>2017-12-13 22:01:08 +0300
commitcf2fe57b0cc22060f8f7dd0478afc35153e4172c (patch)
tree6a442c5a18024e1313ecc6fb23f961261fd09682 /drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
parentb4f70c3d4ec32a2ff4c62e1e2da0da5f55fe12bd (diff)
downloadlinux-cf2fe57b0cc22060f8f7dd0478afc35153e4172c.tar.xz
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: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c')
-rw-r--r--drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
index 08e4afc0ab39..1e1ea100f28c 100644
--- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
+++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
@@ -142,11 +142,11 @@ static int rmnet_map_egress_handler(struct sk_buff *skb,
skb->protocol = htons(ETH_P_MAP);
- return RMNET_MAP_SUCCESS;
+ return 0;
fail:
kfree_skb(skb);
- return RMNET_MAP_CONSUMED;
+ return -ENOMEM;
}
static void
@@ -213,17 +213,8 @@ void rmnet_egress_handler(struct sk_buff *skb)
}
if (port->egress_data_format & RMNET_EGRESS_FORMAT_MAP) {
- switch (rmnet_map_egress_handler(skb, port, mux_id, orig_dev)) {
- case RMNET_MAP_CONSUMED:
+ if (rmnet_map_egress_handler(skb, port, mux_id, orig_dev))
return;
-
- case RMNET_MAP_SUCCESS:
- break;
-
- default:
- kfree_skb(skb);
- return;
- }
}
rmnet_vnd_tx_fixup(skb, orig_dev);