i40e: Remove XSTRINGIFY macro definitions and uses
authorJoe Perches <joe@perches.com>
Wed, 17 Aug 2016 10:37:31 +0000 (03:37 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 20 Aug 2016 04:39:03 +0000 (21:39 -0700)
Use __stringify instead.

Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_client.h

index 8dc98c273663e7d342ea09cfd79fe2e1fed9a4a1..747ef2d504f31aad1fd53c86838a80c961134ad4 100644 (file)
 #define I40E_CURRENT_NVM_VERSION_HI 0x2
 #define I40E_CURRENT_NVM_VERSION_LO 0x40
 
-/* magic for getting defines into strings */
-#define STRINGIFY(foo)  #foo
-#define XSTRINGIFY(bar) STRINGIFY(bar)
-
 #define I40E_RX_DESC(R, i)                     \
        (&(((union i40e_32byte_rx_desc *)((R)->desc))[i]))
 #define I40E_TX_DESC(R, i)                     \
index a4601d97fb24155f978ea9bb8de76276a14efc8d..38a6c36a6a0e3bfeeeb422d08ae6240d6dca3cde 100644 (file)
@@ -36,9 +36,9 @@
 #define I40E_CLIENT_VERSION_MINOR 01
 #define I40E_CLIENT_VERSION_BUILD 00
 #define I40E_CLIENT_VERSION_STR     \
-       XSTRINGIFY(I40E_CLIENT_VERSION_MAJOR) "." \
-       XSTRINGIFY(I40E_CLIENT_VERSION_MINOR) "." \
-       XSTRINGIFY(I40E_CLIENT_VERSION_BUILD)
+       __stringify(I40E_CLIENT_VERSION_MAJOR) "." \
+       __stringify(I40E_CLIENT_VERSION_MINOR) "." \
+       __stringify(I40E_CLIENT_VERSION_BUILD)
 
 struct i40e_client_version {
        u8 major;