Back out redundant part of recent patch

- setup_traffic_shaping is only called when there are tc devices so the
  test of @tcdevices in that function is redundant.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-07-03 06:33:46 -07:00
parent 537f6c157c
commit e4d66fb5fc

View File

@ -2031,7 +2031,6 @@ sub process_tc() {
# Call the setup_${dev}_tc functions # Call the setup_${dev}_tc functions
# #
sub setup_traffic_shaping() { sub setup_traffic_shaping() {
if ( @tcdevices ) {
save_progress_message q("Setting up Traffic Control..."); save_progress_message q("Setting up Traffic Control...");
for my $device ( @tcdevices ) { for my $device ( @tcdevices ) {
@ -2041,7 +2040,6 @@ sub setup_traffic_shaping() {
emit "setup_${dev}_tc"; emit "setup_${dev}_tc";
} }
} }
}
# #
# Process a record in the secmarks file # Process a record in the secmarks file