struct tcf_proto*, unsigned long,
                                        u32 handle, struct nlattr **,
                                        void **, bool);
-       int                     (*delete)(struct tcf_proto*, void *, bool*);
+       int                     (*delete)(struct tcf_proto *tp, void *arg,
+                                         bool *last);
        void                    (*walk)(struct tcf_proto*, struct tcf_walker *arg);
        void                    (*bind_class)(void *, u32, unsigned long);
 
 
                goto err_set_parms;
 
        if (!tc_skip_hw(new->flags)) {
-               err = mall_replace_hw_filter(tp, new, (unsigned long) new);
+               err = mall_replace_hw_filter(tp, new, (unsigned long)new);
                if (err)
                        goto err_replace_hw_filter;
        }
 
                if (handle) {
                        ht_down = u32_lookup_ht(ht->tp_c, handle);
 
-                       if (ht_down == NULL)
+                       if (!ht_down)
                                return -EINVAL;
                        ht_down->refcnt++;
                }
        size_t size;
 #endif
 
-       if (opt == NULL)
+       if (!opt)
                return handle ? -EINVAL : 0;
 
        err = nla_parse_nested(tb, TCA_U32_MAX, opt, u32_policy, NULL);
                        htid = ht->handle;
                } else {
                        ht = u32_lookup_ht(tp->data, TC_U32_HTID(htid));
-                       if (ht == NULL)
+                       if (!ht)
                                return -EINVAL;
                }
        } else {
                return -EINVAL;
 
        if (handle) {
-               if (TC_U32_HTID(handle) && TC_U32_HTID(handle^htid))
+               if (TC_U32_HTID(handle) && TC_U32_HTID(handle ^ htid))
                        return -EINVAL;
                handle = htid | TC_U32_NODE(handle);
                err = idr_alloc_ext(&ht->handle_idr, NULL, NULL,