kernel: psb6970: drop unused variable in psb6970_config_init
authorAleksander Jan Bajkowski <olek2@wp.pl>
Sat, 6 May 2023 14:38:49 +0000 (16:38 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:36 +0000 (03:15 +0200)
commitdc6b55e21f64e9978a805b577c379c3a4a9a2ef0
tree23e4345eb2cfb9e76ec0547bd7b79ef38749964c
parent4935cdbd6904a6909a823cbbfc15207cf05c8cee
kernel: psb6970: drop unused variable in psb6970_config_init

Drop unused variable in psb6970_config_init. This variable should have
been dropped in 0806f8fc80e6 ("lantiq: add Linux 5.10 support as testing kernel").

This fix compilation warning:
drivers/net/phy/psb6970.c: In function 'psb6970_config_init':
drivers/net/phy/psb6970.c:310:28: warning: unused variable 'dev' [-Wunused-variable]
  310 |         struct net_device *dev = pdev->attached_dev;
      |
cc1: all warnings being treated as errors

Fixes: 0806f8fc80e6 ("lantiq: add Linux 5.10 support as testing kernel")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
target/linux/generic/files/drivers/net/phy/psb6970.c