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

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
...@@ -2480,7 +2480,7 @@ static int setup_debugfs(struct adapter *adapter) ...@@ -2480,7 +2480,7 @@ static int setup_debugfs(struct adapter *adapter)
for (i = 0; i < ARRAY_SIZE(debugfs_files); i++) for (i = 0; i < ARRAY_SIZE(debugfs_files); i++)
debugfs_create_file(debugfs_files[i].name, debugfs_create_file(debugfs_files[i].name,
debugfs_files[i].mode, debugfs_files[i].mode,
adapter->debugfs_root, (void *)adapter, adapter->debugfs_root, adapter,
debugfs_files[i].fops); debugfs_files[i].fops);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment