aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2009-05-12 06:48:36 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-17 14:59:50 -0400
commit3977d0334b98770b81dfeb248db232c9bb3d3c88 (patch)
treead44ff66ed48f40313e2cbb2e030ced56f86a619 /drivers/net/sfc
parentcb1c4b71f6da18fa98bab4af055f391d01bee8ba (diff)
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>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/efx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index d3e240b736c..bde8b7ac398 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -894,9 +894,9 @@ static int efx_wanted_rx_queues(void)
894 int count; 894 int count;
895 int cpu; 895 int cpu;
896 896
897 if (!alloc_cpumask_var(&core_mask, GFP_KERNEL)) { 897 if (unlikely(!alloc_cpumask_var(&core_mask, GFP_KERNEL))) {
898 printk(KERN_WARNING 898 printk(KERN_WARNING
899 "efx.c: allocation failure, irq balancing hobbled\n"); 899 "sfc: RSS disabled due to allocation failure\n");
900 return 1; 900 return 1;
901 } 901 }
902 902