diff options
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_fcoe.c')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_fcoe.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_fcoe.c b/drivers/net/ethernet/intel/i40e/i40e_fcoe.c index 1803afeef23e..c8b621e0e7cd 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_fcoe.c +++ b/drivers/net/ethernet/intel/i40e/i40e_fcoe.c | |||
@@ -118,7 +118,7 @@ static inline int i40e_fcoe_fc_eof(struct sk_buff *skb, u8 *eof) | |||
118 | * | 118 | * |
119 | * The FC EOF is converted to the value understood by HW for descriptor | 119 | * The FC EOF is converted to the value understood by HW for descriptor |
120 | * programming. Never call this w/o calling i40e_fcoe_eof_is_supported() | 120 | * programming. Never call this w/o calling i40e_fcoe_eof_is_supported() |
121 | * first. | 121 | * first and that already checks for all supported valid eof values. |
122 | **/ | 122 | **/ |
123 | static inline u32 i40e_fcoe_ctxt_eof(u8 eof) | 123 | static inline u32 i40e_fcoe_ctxt_eof(u8 eof) |
124 | { | 124 | { |
@@ -132,9 +132,12 @@ static inline u32 i40e_fcoe_ctxt_eof(u8 eof) | |||
132 | case FC_EOF_A: | 132 | case FC_EOF_A: |
133 | return I40E_TX_DESC_CMD_L4T_EOFT_EOF_A; | 133 | return I40E_TX_DESC_CMD_L4T_EOFT_EOF_A; |
134 | default: | 134 | default: |
135 | /* FIXME: still returns 0 */ | 135 | /* Supported valid eof shall be already checked by |
136 | pr_err("Unrecognized EOF %x\n", eof); | 136 | * calling i40e_fcoe_eof_is_supported() first, |
137 | return 0; | 137 | * therefore this default case shall never hit. |
138 | */ | ||
139 | WARN_ON(1); | ||
140 | return -EINVAL; | ||
138 | } | 141 | } |
139 | } | 142 | } |
140 | 143 | ||