提交 a154e6f6 编写于 作者: D Dan Carpenter 提交者: David S. Miller

hisilicon: add some missing curly braces

The if block was supposed to have curly braces.  In the current code we
complain about dropped rx packets when we shouldn't.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b8693877
...@@ -567,10 +567,11 @@ static irqreturn_t hip04_mac_interrupt(int irq, void *dev_id) ...@@ -567,10 +567,11 @@ static irqreturn_t hip04_mac_interrupt(int irq, void *dev_id)
writel_relaxed(DEF_INT_MASK, priv->base + PPE_RINT); writel_relaxed(DEF_INT_MASK, priv->base + PPE_RINT);
if (unlikely(ists & DEF_INT_ERR)) { if (unlikely(ists & DEF_INT_ERR)) {
if (ists & (RCV_NOBUF | RCV_DROP)) if (ists & (RCV_NOBUF | RCV_DROP)) {
stats->rx_errors++; stats->rx_errors++;
stats->rx_dropped++; stats->rx_dropped++;
netdev_err(ndev, "rx drop\n"); netdev_err(ndev, "rx drop\n");
}
if (ists & TX_DROP) { if (ists & TX_DROP) {
stats->tx_dropped++; stats->tx_dropped++;
netdev_err(ndev, "tx drop\n"); netdev_err(ndev, "tx drop\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册