Skip to content

Commit

Permalink
cxgb4/cxgb4vf: Remove superfluous void * cast in debugfs_create_file(…
Browse files Browse the repository at this point in the history
…) 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: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Geert Uytterhoeven authored and David S. Miller committed May 5, 2020
1 parent 9ea8330 commit 730f135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 730f135

Please sign in to comment.