summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Hendry <jhendry@mintel.com>2014-10-29 20:54:30 +0000
committerJason Hendry <jhendry@mintel.com>2014-10-29 20:54:30 +0000
commit2f97a9155cda583132408bbd29637010386177ed (patch)
tree1c52596290b7d6a2f3ab63a1ae196183aa97c4d5
parent1af7957d088b73d5629dba03076fb99efafb5453 (diff)
downloadvyatta-cfg-system-2f97a9155cda583132408bbd29637010386177ed.tar.gz
vyatta-cfg-system-2f97a9155cda583132408bbd29637010386177ed.zip
Removing unsed variable from declaration
-rwxr-xr-xscripts/vyatta-interfaces.pl4
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'";
}