Commit b6a0ecae authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jakub Kicinski
Browse files

octeontx2-af: Slightly simplify rvu_npc_exact_init()

parent 2450d7d9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1870,12 +1870,11 @@ int rvu_npc_exact_init(struct rvu *rvu)
	/* Set capability to true */
	rvu->hw->cap.npc_exact_match_enabled = true;

	table = kmalloc(sizeof(*table), GFP_KERNEL);
	table = kzalloc(sizeof(*table), GFP_KERNEL);
	if (!table)
		return -ENOMEM;

	dev_dbg(rvu->dev, "%s: Memory allocation for table success\n", __func__);
	memset(table, 0, sizeof(*table));
	rvu->hw->table = table;

	/* Read table size, ways and depth */