Re: [PATCH] PATCH: IPMI driver

From: Jeff Garzik (jgarzik@pobox.com)
Date: Thu Jan 09 2003 - 15:42:11 EST


On Thu, Jan 09, 2003 at 08:17:57PM +0000, Alan Cox wrote:
> On Thu, 2003-01-09 at 19:20, Dave Jones wrote:
> > time_diff = ((jiffies_now - kcs_info->last_timeout_jiffies)
>
> Thats valid for unsigned maths
> 0x00000001 - 0xFFFFFFFF = 0x00000002

Just as a general note (not to Alan), this often appears in ethernet
drivers, in their RX and TX producer/consumer ring counters... so don't
be surprised if you see this logic elsewhere in the kernel, too.

        Jeff

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



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:29 EST