提交 730f1351 编写于 作者: G Geert Uytterhoeven 提交者: 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: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册