mlx4_core: Clean up mlx4_alloc_icm() a bit
authorRoland Dreier <rolandd@cisco.com>
Thu, 20 May 2010 22:58:22 +0000 (15:58 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 20 May 2010 22:58:22 +0000 (15:58 -0700)
commitc050def076bfbc4513ee961c77fde6ba3d401158
treeb5c6e4a7a192eea51e587a10a5bb1a627290ff4a
parentc0dc72bad9cf21071f5e4005de46f7c8b67a138a
mlx4_core: Clean up mlx4_alloc_icm() a bit

Handle the allocation error case first, so that we don't have further
nested if for handling the common case of success.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/icm.c