Skip to content

Commit 24e4275

Browse files
Dan Carpenterrolandd
authored andcommitted
mlx5_core: Remove dead code
Remove leftover of debug code. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
1 parent d9fe409 commit 24e4275

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,8 @@ static int alloc_4k(struct mlx5_core_dev *dev, u64 *addr)
192192
struct fw_page *fp;
193193
unsigned n;
194194

195-
if (list_empty(&dev->priv.free_list)) {
195+
if (list_empty(&dev->priv.free_list))
196196
return -ENOMEM;
197-
mlx5_core_warn(dev, "\n");
198-
}
199197

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

0 commit comments

Comments
 (0)