Skip to content

Commit 315c9e8

Browse files
YueHaibingdavem330
authored andcommitted
net: qualcomm: rmnet: Remove set but not used variable 'cmd'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c: In function 'rmnet_map_do_flow_control': drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:23:36: warning: variable 'cmd' set but not used [-Wunused-but-set-variable] struct rmnet_map_control_command *cmd; 'cmd' not used anymore now, should also be removed. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 26d3192 commit 315c9e8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ static u8 rmnet_map_do_flow_control(struct sk_buff *skb,
2020
struct rmnet_port *port,
2121
int enable)
2222
{
23-
struct rmnet_map_control_command *cmd;
2423
struct rmnet_endpoint *ep;
2524
struct net_device *vnd;
2625
u8 mux_id;
2726
int r;
2827

2928
mux_id = RMNET_MAP_GET_MUX_ID(skb);
30-
cmd = RMNET_MAP_GET_CMD_START(skb);
3129

3230
if (mux_id >= RMNET_MAX_LOGICAL_EP) {
3331
kfree_skb(skb);

0 commit comments

Comments
 (0)