If func is actually null we won't get much from sdio_func_id(func).
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
if (!func) {
printk(KERN_WARNING "%s: pending IRQ for "
"non-existant function\n",
if (!func) {
printk(KERN_WARNING "%s: pending IRQ for "
"non-existant function\n",
} else if (func->irq_handler) {
func->irq_handler(func);
count++;
} else if (func->irq_handler) {
func->irq_handler(func);
count++;