Commit 730f1351 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David S. Miller
Browse files

cxgb4/cxgb4vf: Remove superfluous void * cast in debugfs_create_file() call



There is no need to cast a typed pointer to a void pointer when calling
a function that accepts the latter.  Remove it, as the cast prevents
further compiler checks.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9ea83302
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2480,7 +2480,7 @@ static int setup_debugfs(struct adapter *adapter)
	for (i = 0; i < ARRAY_SIZE(debugfs_files); i++)
		debugfs_create_file(debugfs_files[i].name,
				    debugfs_files[i].mode,
				    adapter->debugfs_root, (void *)adapter,
				    adapter->debugfs_root, adapter,
				    debugfs_files[i].fops);

	return 0;