diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2017-01-10 17:33:36 -0700 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2017-07-06 11:30:07 -0400 |
commit | 0f9bfb979a5fae2936afa128c04f29ab5e07a9ad (patch) | |
tree | 31cdb0abd071cfec88505336dd1f4a5dbed74d06 /drivers/ntb/hw/amd/ntb_hw_amd.h | |
parent | NTB: Add ntb.h comments (diff) | |
download | linux-dev-0f9bfb979a5fae2936afa128c04f29ab5e07a9ad.tar.xz linux-dev-0f9bfb979a5fae2936afa128c04f29ab5e07a9ad.zip |
ntb_hw_amd: Style fixes: open code macros that just obfuscate code
As per a comments in [1] by Greg Kroah-Hartman, the ndev_* macros should
be cleaned up. This makes it more clear what's actually going on when
reading the code.
[1] http://www.spinics.net/lists/linux-pci/msg56904.html
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/hw/amd/ntb_hw_amd.h')
-rw-r--r-- | drivers/ntb/hw/amd/ntb_hw_amd.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.h b/drivers/ntb/hw/amd/ntb_hw_amd.h index 13d73ed94a52..8f3617a46292 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.h +++ b/drivers/ntb/hw/amd/ntb_hw_amd.h @@ -211,9 +211,6 @@ struct amd_ntb_dev { struct dentry *debugfs_info; }; -#define ndev_pdev(ndev) ((ndev)->ntb.pdev) -#define ndev_name(ndev) pci_name(ndev_pdev(ndev)) -#define ndev_dev(ndev) (&ndev_pdev(ndev)->dev) #define ntb_ndev(__ntb) container_of(__ntb, struct amd_ntb_dev, ntb) #define hb_ndev(__work) container_of(__work, struct amd_ntb_dev, hb_timer.work) |