Re: [take16 1/4] kevent: Core files. From: Chase Venters <hidden> Date: 2006-09-06 13:57:10 Also in: lkml On Wed, 6 Sep 2006, Chase Venters wrote: quoted + if (start + num >= KEVENT_MAX_EVENTS || + start >= KEVENT_MAX_EVENTS || + num >= KEVENT_MAX_EVENTS) Since start and num are unsigned, the last two checks are redundant. If start or num is individually >= KEVENT_MAX_EVENTS, start + num must be. Actually, my early-morning brain code optimizer is apparently broken, because it forgot all about integer wraparound. Disregard please. Thanks, Chase
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help