diff options
author | Jason Hendry <jhendry@mintel.com> | 2014-10-29 20:54:30 +0000 |
---|---|---|
committer | Jason Hendry <jhendry@mintel.com> | 2014-10-29 20:54:30 +0000 |
commit | 2f97a9155cda583132408bbd29637010386177ed (patch) | |
tree | 1c52596290b7d6a2f3ab63a1ae196183aa97c4d5 | |
parent | 1af7957d088b73d5629dba03076fb99efafb5453 (diff) | |
download | vyatta-cfg-system-2f97a9155cda583132408bbd29637010386177ed.tar.gz vyatta-cfg-system-2f97a9155cda583132408bbd29637010386177ed.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'"; } |