diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-07-10 18:55:11 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-03-25 15:02:19 +0100 |
commit | d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b (patch) | |
tree | 826eb9d112029819aa44925346a55f887b1c3baf /net/netfilter/x_tables.c | |
parent | ff67e4e42bd178b1179c4d8e5c1fde18758ce84f (diff) | |
download | kernel_samsung_smdk4412-d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b.zip kernel_samsung_smdk4412-d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b.tar.gz kernel_samsung_smdk4412-d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b.tar.bz2 |
netfilter: xtables: make use of xt_request_find_target
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/netfilter/x_tables.c')
-rw-r--r-- | net/netfilter/x_tables.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index 9a248d4..bf2806a 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -250,9 +250,7 @@ struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision) target = try_then_request_module(xt_find_target(af, name, revision), "%st_%s", xt_prefix[af], name); - if (IS_ERR(target) || !target) - return NULL; - return target; + return (target != NULL) ? target : ERR_PTR(-ENOENT); } EXPORT_SYMBOL_GPL(xt_request_find_target); |