Skip to content

Commit

Permalink
mlx5_core: Remove dead code
Browse files Browse the repository at this point in the history
Remove leftover of debug code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Dan Carpenter authored and Roland Dreier committed Jan 14, 2014
1 parent d9fe409 commit 24e4275
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ static int alloc_4k(struct mlx5_core_dev *dev, u64 *addr)
struct fw_page *fp;
unsigned n;

if (list_empty(&dev->priv.free_list)) {
if (list_empty(&dev->priv.free_list))
return -ENOMEM;
mlx5_core_warn(dev, "\n");
}

fp = list_entry(dev->priv.free_list.next, struct fw_page, list);
n = find_first_bit(&fp->bitmask, 8 * sizeof(fp->bitmask));
Expand Down

0 comments on commit 24e4275

Please sign in to comment.