lkml.org 
[lkml]   [1997]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: BUG in irq.c?
Date
>    linux-2.1.26/arch/i386/kernel/irq.c
> 221: static struct irqaction *irq_action[16] = {
> 480: void free_irq(unsigned int irq, void *dev_id)
> 497: if (!irq[irq_action]) {
> ^^^^^^^^^^^^^^^
> Playing dumb - Shouldn't this be "irq_action[irq]"?
>
> It is the same thing. The joys C pointer calculations...

Okay, I can see it now...but IMHO it really should be changed
because it is not intuitive (at least for me).

--
Andrew E. Mileski mailto:aem@netcom.ca
Linux Plug-and-Play Kernel Project http://www.redhat.com/linux-info/pnp/
XFree86 Matrox Team http://www.bf.rmit.edu.au/~ajv/xf86-matrox.html

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.026 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site