From 3b6b89336ee42655f142efd593f2e6b3b4001edc Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 24 Oct 2016 11:57:56 -0700 Subject: [PATCH] Eliminate superfluous test Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 551de86e8..5f8879f68 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -4847,7 +4847,7 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$ ) { $chainref = ensure_chain( 'mangle', $chainnames{$chain} ); } - $restriction |= $chainref->{restriction} if defined $chainref->{restriction}; + $restriction |= $chainref->{restriction}; if ( ( my $result = expand_rule( $chainref , $restriction,