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

net: qualcomm: rmnet: Remove the unused endpoint -1

This was used only in the original patch series where the IOCTLs were
present and is no longer in use.

Fixes: ceed73a2 ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Dan Williams <dcbw@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 009e1b2b
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
*/ */
/* Local Definitions and Declarations */ /* Local Definitions and Declarations */
#define RMNET_LOCAL_LOGICAL_ENDPOINT -1
struct rmnet_walk_data { struct rmnet_walk_data {
struct net_device *real_dev; struct net_device *real_dev;
...@@ -89,10 +88,7 @@ rmnet_get_endpoint(struct net_device *dev, int config_id) ...@@ -89,10 +88,7 @@ rmnet_get_endpoint(struct net_device *dev, int config_id)
if (!r) if (!r)
return NULL; return NULL;
if (config_id == RMNET_LOCAL_LOGICAL_ENDPOINT) ep = &r->muxed_ep[config_id];
ep = &r->local_ep;
else
ep = &r->muxed_ep[config_id];
} }
return ep; return ep;
...@@ -182,10 +178,7 @@ static int __rmnet_set_endpoint_config(struct net_device *dev, int config_id, ...@@ -182,10 +178,7 @@ static int __rmnet_set_endpoint_config(struct net_device *dev, int config_id,
return -EINVAL; return -EINVAL;
memcpy(dev_ep, ep, sizeof(struct rmnet_endpoint)); memcpy(dev_ep, ep, sizeof(struct rmnet_endpoint));
if (config_id == RMNET_LOCAL_LOGICAL_ENDPOINT) dev_ep->mux_id = config_id;
dev_ep->mux_id = 0;
else
dev_ep->mux_id = config_id;
return 0; return 0;
} }
...@@ -199,8 +192,7 @@ static int rmnet_set_endpoint_config(struct net_device *dev, ...@@ -199,8 +192,7 @@ static int rmnet_set_endpoint_config(struct net_device *dev,
netdev_dbg(dev, "id %d mode %d dev %s\n", netdev_dbg(dev, "id %d mode %d dev %s\n",
config_id, rmnet_mode, egress_dev->name); config_id, rmnet_mode, egress_dev->name);
if (config_id < RMNET_LOCAL_LOGICAL_ENDPOINT || if (config_id >= RMNET_MAX_LOGICAL_EP)
config_id >= RMNET_MAX_LOGICAL_EP)
return -EINVAL; return -EINVAL;
/* This config is cleared on every set, so its ok to not /* This config is cleared on every set, so its ok to not
......
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