Skip to content

Commit

Permalink
net_sched: remove unnecessary parentheses while return
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yang Yingliang authored and David S. Miller committed Dec 11, 2013
1 parent 109744c commit 17569fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion net/sched/act_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion net/sched/sch_dsmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------------------- */
Expand Down

0 comments on commit 17569fa

Please sign in to comment.