]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netfilter/xt_state.c
netfilter: xtables: shorten up return clause
[net-next-2.6.git] / net / netfilter / xt_state.c
index 2b75230d15ca3800ab3b322eda96d3293b2c3c49..be00d7b1f53b3cc6728d3f84dd209c5f6e491ea6 100644 (file)
@@ -42,12 +42,10 @@ static int state_mt_check(const struct xt_mtchk_param *par)
        int ret;
 
        ret = nf_ct_l3proto_try_module_get(par->family);
-       if (ret < 0) {
+       if (ret < 0)
                pr_info("cannot load conntrack support for proto=%u\n",
                        par->family);
-               return ret;
-       }
-       return 0;
+       return ret;
 }
 
 static void state_mt_destroy(const struct xt_mtdtor_param *par)