Skip to content

Commit 79890d3

Browse files
akiyanodavem330
authored andcommitted
net: ena: cosmetic: satisfy gcc warning
gcc 4.8 reports a warning when initializing with = {0}. Dropping the "0" from the braces fixes the issue. This fix is not ANSI compatible but is allowed by gcc. Signed-off-by: Sameeh Jubran <[email protected]> Signed-off-by: Arthur Kiyanovski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 866032a commit 79890d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/amazon/ena/ena_netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static int ena_xdp_xmit_buff(struct net_device *dev,
307307
struct ena_rx_buffer *rx_info)
308308
{
309309
struct ena_adapter *adapter = netdev_priv(dev);
310-
struct ena_com_tx_ctx ena_tx_ctx = {0};
310+
struct ena_com_tx_ctx ena_tx_ctx = {};
311311
struct ena_tx_buffer *tx_info;
312312
struct ena_ring *xdp_ring;
313313
u16 next_to_use, req_id;

0 commit comments

Comments
 (0)