diff options
author | Jan Engelhardt <jengelh@gmx.de> | 2007-02-07 15:06:43 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-08 12:39:11 -0800 |
commit | 2822b0d92675cd8d4fc73112334f4b113ba7c979 (patch) | |
tree | b4167e7664415b8c9331479eb7c3d65c25821156 /net/netfilter/xt_CLASSIFY.c | |
parent | a09113c2c8ec59a5cc228efa5869aade2b8f13f7 (diff) | |
download | linux-stable-2822b0d92675cd8d4fc73112334f4b113ba7c979.tar.gz linux-stable-2822b0d92675cd8d4fc73112334f4b113ba7c979.tar.bz2 linux-stable-2822b0d92675cd8d4fc73112334f4b113ba7c979.zip |
[NETFILTER]: Remove useless comparisons before assignments
Remove unnecessary if() constructs before assignment.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/xt_CLASSIFY.c')
-rw-r--r-- | net/netfilter/xt_CLASSIFY.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/netfilter/xt_CLASSIFY.c b/net/netfilter/xt_CLASSIFY.c index 50de965bb104..195e92990da7 100644 --- a/net/netfilter/xt_CLASSIFY.c +++ b/net/netfilter/xt_CLASSIFY.c @@ -33,9 +33,7 @@ target(struct sk_buff **pskb, { const struct xt_classify_target_info *clinfo = targinfo; - if ((*pskb)->priority != clinfo->priority) - (*pskb)->priority = clinfo->priority; - + (*pskb)->priority = clinfo->priority; return XT_CONTINUE; } |