diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-05-05 15:34:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-05 13:16:26 -0700 |
commit | 730f135104f3afe320d0df4c53c28d6ad9d17d6b (patch) | |
tree | f407aaaf97f3588c69b79fef3fdad477dbe6214a /drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | |
parent | 9ea833022b5c887a242c0e3567f540c91f8611e6 (diff) | |
download | linux-730f135104f3afe320d0df4c53c28d6ad9d17d6b.tar.bz2 |
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: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c index 9cc3541a7e1c..cec865a97464 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c @@ -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; |