Commit 17569fae authored by Yang Yingliang's avatar Yang Yingliang Committed by David S. Miller

net_sched: remove unnecessary parentheses while return

return is not a function, parentheses are not required.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 109744c7
...@@ -191,7 +191,8 @@ u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo) ...@@ -191,7 +191,8 @@ u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo)
val = 1; val = 1;
} while (tcf_hash_lookup(val, hinfo)); } while (tcf_hash_lookup(val, hinfo));
return (*idx_gen = val); *idx_gen = val;
return val;
} }
EXPORT_SYMBOL(tcf_hash_new_index); EXPORT_SYMBOL(tcf_hash_new_index);
......
...@@ -47,7 +47,7 @@ struct dsmark_qdisc_data { ...@@ -47,7 +47,7 @@ struct dsmark_qdisc_data {
static inline int dsmark_valid_index(struct dsmark_qdisc_data *p, u16 index) 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 ------------------------- */ /* ------------------------- Class/flow operations ------------------------- */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment