net: qualcomm: rmnet: Remove set but not used variable 'cmd'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 29 Nov 2018 02:36:32 +0000 (02:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Dec 2018 01:24:01 +0000 (17:24 -0800)
commit315c9e83010d63370fb0de160e52a21c3f3fa687
tree001e00ba71f563387f2fe1bdade066a9dda30865
parent26d31925cd5ea4b5b168ed538b0326d63ccbb384
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>
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c