net: qualcomm: rmnet: remove unused variable priv
authorColin Ian King <colin.king@canonical.com>
Thu, 31 Aug 2017 14:07:27 +0000 (15:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Sep 2017 01:34:36 +0000 (18:34 -0700)
priv is being assigned but is never used, so remove it.

Cleans up clang build warning:
"warning: Value stored to 'priv' is never read"

Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c

index c8b573d..bf7455f 100644 (file)
@@ -73,9 +73,6 @@ static const struct net_device_ops rmnet_vnd_ops = {
  */
 void rmnet_vnd_setup(struct net_device *rmnet_dev)
 {
-       struct rmnet_priv *priv;
-
-       priv = netdev_priv(rmnet_dev);
        netdev_dbg(rmnet_dev, "Setting up device %s\n", rmnet_dev->name);
 
        rmnet_dev->netdev_ops = &rmnet_vnd_ops;