fix boot panic No available IRQ to bind in find_unbound_irq()

Found by jesuszhu <gaoyang.zyh@taobao.com>

Simple logical errors. Only if irq reaches nr_irqs means 
no irq availiable.

Signed-off-by: Charles Wang <muming.wq@taobao.com>