aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/act_api.c3
-rw-r--r--net/sched/sch_dsmark.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 69cb848e8345..4adbce8f8314 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)
191 val = 1; 191 val = 1;
192 } while (tcf_hash_lookup(val, hinfo)); 192 } while (tcf_hash_lookup(val, hinfo));
193 193
194 return (*idx_gen = val); 194 *idx_gen = val;
195 return val;
195} 196}
196EXPORT_SYMBOL(tcf_hash_new_index); 197EXPORT_SYMBOL(tcf_hash_new_index);
197 198
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c
index 3886365cc207..0952fd2684e4 100644
--- a/net/sched/sch_dsmark.c
+++ b/net/sched/sch_dsmark.c
@@ -47,7 +47,7 @@ struct dsmark_qdisc_data {
47 47
48static inline int dsmark_valid_index(struct dsmark_qdisc_data *p, u16 index) 48static inline int dsmark_valid_index(struct dsmark_qdisc_data *p, u16 index)
49{ 49{
50 return (index <= p->indices && index > 0); 50 return index <= p->indices && index > 0;
51} 51}
52 52
53/* ------------------------- Class/flow operations ------------------------- */ 53/* ------------------------- Class/flow operations ------------------------- */