Commit 2a493216 authored by Xin Long's avatar Xin Long Committed by David S. Miller

sctp: remove the typedef sctp_error_t

This patch is to remove the typedef sctp_error_t, and replace
with enum sctp_error in the places where it's using this typedef.
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 87caeba7
...@@ -457,7 +457,7 @@ struct sctp_operr_chunk { ...@@ -457,7 +457,7 @@ struct sctp_operr_chunk {
* 9 No User Data * 9 No User Data
* 10 Cookie Received While Shutting Down * 10 Cookie Received While Shutting Down
*/ */
typedef enum { enum sctp_error {
SCTP_ERROR_NO_ERROR = cpu_to_be16(0x00), SCTP_ERROR_NO_ERROR = cpu_to_be16(0x00),
SCTP_ERROR_INV_STRM = cpu_to_be16(0x01), SCTP_ERROR_INV_STRM = cpu_to_be16(0x01),
...@@ -512,7 +512,7 @@ typedef enum { ...@@ -512,7 +512,7 @@ typedef enum {
* 0x0105 Unsupported HMAC Identifier * 0x0105 Unsupported HMAC Identifier
*/ */
SCTP_ERROR_UNSUP_HMAC = cpu_to_be16(0x0105) SCTP_ERROR_UNSUP_HMAC = cpu_to_be16(0x0105)
} sctp_error_t; };
......
...@@ -528,7 +528,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net, ...@@ -528,7 +528,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net,
(struct sctp_init_chunk *)chunk->chunk_hdr, chunk, (struct sctp_init_chunk *)chunk->chunk_hdr, chunk,
&err_chunk)) { &err_chunk)) {
sctp_error_t error = SCTP_ERROR_NO_RESOURCE; enum sctp_error error = SCTP_ERROR_NO_RESOURCE;
/* This chunk contains fatal error. It is to be discarded. /* This chunk contains fatal error. It is to be discarded.
* Send an ABORT, with causes. If there are no causes, * Send an ABORT, with causes. If there are no causes,
......
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