[NETFILTER]: add some consts, remove some casts
[firefly-linux-kernel-4.4.55.git] / net / netfilter / xt_NFLOG.c
index 901ed7abaa1bcf433f90bb3123a77d4bcd3ee57b..20e55d588a3c2fe5fcbe15404129a164b99b7134 100644 (file)
@@ -38,18 +38,18 @@ nflog_target(struct sk_buff **pskb,
        return XT_CONTINUE;
 }
 
-static int
+static bool
 nflog_checkentry(const char *tablename, const void *entry,
                 const struct xt_target *target, void *targetinfo,
                 unsigned int hookmask)
 {
-       struct xt_nflog_info *info = targetinfo;
+       const struct xt_nflog_info *info = targetinfo;
 
        if (info->flags & ~XT_NFLOG_MASK)
-               return 0;
+               return false;
        if (info->prefix[sizeof(info->prefix) - 1] != '\0')
-               return 0;
-       return 1;
+               return false;
+       return true;
 }
 
 static struct xt_target xt_nflog_target[] = {