Don't do (1 << irq) to get an interrupt mask when irq = -1.
Don't do (1 << irq) to get an interrupt mask when irq = -1.

Submitted by:	Luoqi Chen <luoqi@watermarkgroup.com>

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase