]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce53d5f75599b1fc8fd1b6ba665d06d22791d8eb
treeb5c6e4a7a192eea51e587a10a5bb1a627290ff4a
parentfdebec8f7232b0e6b9dc9bf39fcaf5c0255a39e6
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