Commit 9c68aae2 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: remove typedef from NET_TYPES

Take out the typedef and just use enum net_types instead.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21f131b5
...@@ -151,7 +151,8 @@ ...@@ -151,7 +151,8 @@
* SCSI Host value */ * SCSI Host value */
/* various types of network packets that can be sent in cmdrsp */ /* various types of network packets that can be sent in cmdrsp */
typedef enum { NET_RCV_POST = 0, /* submit buffer to hold receiving enum net_types {
NET_RCV_POST = 0, /* submit buffer to hold receiving
* incoming packet */ * incoming packet */
/* virtnic -> uisnic */ /* virtnic -> uisnic */
NET_RCV, /* incoming packet received */ NET_RCV, /* incoming packet received */
...@@ -174,7 +175,7 @@ typedef enum { NET_RCV_POST = 0, /* submit buffer to hold receiving ...@@ -174,7 +175,7 @@ typedef enum { NET_RCV_POST = 0, /* submit buffer to hold receiving
* its MAC addr */ * its MAC addr */
NET_MACADDR_ACK, /* MAC address */ NET_MACADDR_ACK, /* MAC address */
} NET_TYPES; };
#define ETH_HEADER_SIZE 14 /* size of ethernet header */ #define ETH_HEADER_SIZE 14 /* size of ethernet header */
...@@ -534,7 +535,7 @@ struct net_pkt_macaddr { ...@@ -534,7 +535,7 @@ struct net_pkt_macaddr {
/* cmd rsp packet used for VNIC network traffic */ /* cmd rsp packet used for VNIC network traffic */
struct uiscmdrsp_net { struct uiscmdrsp_net {
NET_TYPES type; enum net_types type;
void *buf; void *buf;
union { union {
struct net_pkt_xmt xmt; /* used for NET_XMIT */ struct net_pkt_xmt xmt; /* used for NET_XMIT */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment