diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2013-12-10 12:55:29 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-11 03:44:51 (GMT) |
commit | 17569faedf84768e76b204ba6d682022b830a3ed (patch) | |
tree | 2a20143f83d758cf95d5cb246a1d2bd84de68378 /net | |
parent | 109744c7cff0320790f3afa60bebe05994be9ec3 (diff) | |
download | linux-17569faedf84768e76b204ba6d682022b830a3ed.tar.xz |
net_sched: remove unnecessary parentheses while return
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/act_api.c | 3 | ||||
-rw-r--r-- | net/sched/sch_dsmark.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 69cb848..4adbce8 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -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); diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c index 3886365..0952fd2 100644 --- a/net/sched/sch_dsmark.c +++ b/net/sched/sch_dsmark.c @@ -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 ------------------------- */ |