net_sched: remove unnecessary parentheses while return
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 10 Dec 2013 12:55:29 +0000 (20:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 03:44:51 +0000 (22:44 -0500)
return is not a function, parentheses are not required.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c
net/sched/sch_dsmark.c

index 69cb848e83455035a3e9ad85b2d7922434069d7e..4adbce8f8314ae29d815a7d9d41ddb33fd54aa2f 100644 (file)
@@ -191,7 +191,8 @@ u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo)
                        val = 1;
        } while (tcf_hash_lookup(val, hinfo));
 
-       return (*idx_gen = val);
+       *idx_gen = val;
+       return val;
 }
 EXPORT_SYMBOL(tcf_hash_new_index);
 
index 3886365cc207d139a21efdad996f71b033f3a09a..0952fd2684e4894f3d5b11902d4e7e7f1fb3556d 100644 (file)
@@ -47,7 +47,7 @@ struct dsmark_qdisc_data {
 
 static inline int dsmark_valid_index(struct dsmark_qdisc_data *p, u16 index)
 {
-       return (index <= p->indices && index > 0);
+       return index <= p->indices && index > 0;
 }
 
 /* ------------------------- Class/flow operations ------------------------- */