Skip to content

Commit 1a2c266

Browse files
Lee Jonesdavem330
authored andcommitted
net: wan: dlci: Remove set but not used variable 'err'
Fixes the following W=1 kernel build warning(s): drivers/net/wan/dlci.c: In function ‘dlci_close’: drivers/net/wan/dlci.c:298:8: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Mike McLagan <[email protected]> Cc: [email protected] Signed-off-by: Lee Jones <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fd29aee commit 1a2c266

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/wan/dlci.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,13 @@ static int dlci_close(struct net_device *dev)
295295
{
296296
struct dlci_local *dlp;
297297
struct frad_local *flp;
298-
int err;
299298

300299
netif_stop_queue(dev);
301300

302301
dlp = netdev_priv(dev);
303302

304303
flp = netdev_priv(dlp->slave);
305-
err = (*flp->deactivate)(dlp->slave, dev);
304+
(*flp->deactivate)(dlp->slave, dev);
306305

307306
return 0;
308307
}

0 commit comments

Comments
 (0)