diff options
author | Jason Hendry <jhendry@mintel.com> | 2014-10-29 20:54:30 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2017-09-14 13:37:30 +0200 |
commit | e0f1aff78b8c23effa22b498c42a7437a26bc569 (patch) | |
tree | dd33183903ebdfd84bbc4d1f38197deecb58bb4c | |
parent | 3719eee6a1db465412fd6c2e104fcf6c37728d63 (diff) | |
download | vyatta-cfg-system-e0f1aff78b8c23effa22b498c42a7437a26bc569.tar.gz vyatta-cfg-system-e0f1aff78b8c23effa22b498c42a7437a26bc569.zip |
Removing unsed variable from declaration
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index b602dda6..621596a0 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -595,7 +595,6 @@ sub set_offload_setting { die "Missing --dev argument\n" unless $intf; my $ovalue = get_offload_setting($intf, $option); - my $args = ''; my %ethtool_opts = ( 'generic-receive-offload' => 'gro', 'generic-segmentation-offload' => 'gso', @@ -604,10 +603,9 @@ sub set_offload_setting { ); if (defined($nvalue) && $nvalue ne $ovalue) { - my $cmd = "$ETHTOOL -K $intf $ethtool_opts{$option} $nvalue"; - system($cmd); + system($cmd); if ($? >> 8) { die "exec of $ETHTOOL failed: '$cmd'"; } |