diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2017-01-10 19:33:37 -0500 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2017-07-06 11:30:07 -0400 |
commit | 48ea02184a9d000f877f901951d37843b26d26ad (patch) | |
tree | bb863325f038864f80bfecd07ccdb9480f50f8ff /drivers/ntb/hw/intel/ntb_hw_intel.h | |
parent | 0f9bfb979a5fae2936afa128c04f29ab5e07a9ad (diff) |
ntb_hw_intel: 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/intel/ntb_hw_intel.h')
-rw-r--r-- | drivers/ntb/hw/intel/ntb_hw_intel.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.h b/drivers/ntb/hw/intel/ntb_hw_intel.h index f2cf8a783f1e..2d6c38afb128 100644 --- a/drivers/ntb/hw/intel/ntb_hw_intel.h +++ b/drivers/ntb/hw/intel/ntb_hw_intel.h | |||
@@ -382,9 +382,6 @@ struct intel_ntb_dev { | |||
382 | struct dentry *debugfs_info; | 382 | struct dentry *debugfs_info; |
383 | }; | 383 | }; |
384 | 384 | ||
385 | #define ndev_pdev(ndev) ((ndev)->ntb.pdev) | ||
386 | #define ndev_name(ndev) pci_name(ndev_pdev(ndev)) | ||
387 | #define ndev_dev(ndev) (&ndev_pdev(ndev)->dev) | ||
388 | #define ntb_ndev(__ntb) container_of(__ntb, struct intel_ntb_dev, ntb) | 385 | #define ntb_ndev(__ntb) container_of(__ntb, struct intel_ntb_dev, ntb) |
389 | #define hb_ndev(__work) container_of(__work, struct intel_ntb_dev, \ | 386 | #define hb_ndev(__work) container_of(__work, struct intel_ntb_dev, \ |
390 | hb_timer.work) | 387 | hb_timer.work) |