Skip to content

Commit

Permalink
Driver: Vmxnet3: Change the hex constant to its decimal equivalent
Browse files Browse the repository at this point in the history
The hex constant chosen for VMXNET3_REV1_MAGIC is offensive,
replace it with its decimal equivalent.

Signed-off-by: Shrikrishna Khare <skhare@vmware.com>
Reviewed-by: Shreyas Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shrikrishna Khare authored and David S. Miller committed Feb 9, 2015
1 parent 567e4b7 commit dd83829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/vmxnet3/vmxnet3_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ struct Vmxnet3_DriverInfo {
};


#define VMXNET3_REV1_MAGIC 0xbabefee1
#define VMXNET3_REV1_MAGIC 3133079265u

/*
* QueueDescPA must be 128 bytes aligned. It points to an array of
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/vmxnet3/vmxnet3_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
/*
* Version numbers
*/
#define VMXNET3_DRIVER_VERSION_STRING "1.3.3.0-k"
#define VMXNET3_DRIVER_VERSION_STRING "1.3.4.0-k"

/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
#define VMXNET3_DRIVER_VERSION_NUM 0x01030300
#define VMXNET3_DRIVER_VERSION_NUM 0x01030400

#if defined(CONFIG_PCI_MSI)
/* RSS only makes sense if MSI-X is supported. */
Expand Down

0 comments on commit dd83829

Please sign in to comment.