Re: [RFC][PATCH 03/22] sched: SCHED_DEADLINE data structures.

From: Steven Rostedt
Date: Fri Nov 12 2010 - 12:11:26 EST


On Wed, 2010-11-10 at 20:10 +0100, Peter Zijlstra wrote:
> On Fri, 2010-10-29 at 08:28 +0200, Raistlin wrote:
> > + if (unlikely(prio >= MAX_DL_PRIO && prio < MAX_RT_PRIO))
>
> Since MAX_DL_PRIO is 0, you can write that as:
> ((unsigned)prio) < MAX_RT_PRIO

Does this make a difference? If not, I rather leave it out since it just
makes it less readable, and a bit confusing for reviewers.

-- Steve



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/