Skip to content

Commit

Permalink
sfc: modify allocation error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Travis authored and David S. Miller committed May 17, 2009
1 parent cb1c4b7 commit 3977d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3977d03

Please sign in to comment.