sfc: modify allocation error message

Change error message when alloc_cpumask_var fails.

Repairs "cpumask: convert drivers/net/sfc".

Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Mike Travis 2009-05-12 10:48:36 +00:00 committed by David S. Miller
parent cb1c4b71f6
commit 3977d0334b

View file

@ -894,9 +894,9 @@ static int efx_wanted_rx_queues(void)
int count;
int cpu;
if (!alloc_cpumask_var(&core_mask, GFP_KERNEL)) {
if (unlikely(!alloc_cpumask_var(&core_mask, GFP_KERNEL))) {
printk(KERN_WARNING
"efx.c: allocation failure, irq balancing hobbled\n");
"sfc: RSS disabled due to allocation failure\n");
return 1;
}