mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 11:11:22 -04:00
hinic3: Fix code style (Missing a blank line before return)
Fix code style of missing a blank line before return. Co-developed-by: Zhu Yikai <zhuyikai1@h-partners.com> Signed-off-by: Zhu Yikai <zhuyikai1@h-partners.com> Signed-off-by: Fan Gong <gongfan1@huawei.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/e4b34db5ee423ca554ff60b49a9ecd7f84c32110.1757653621.git.zhuyikai1@h-partners.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
@@ -122,6 +122,7 @@ static int hinic3_attach_aux_devices(struct hinic3_hwdev *hwdev)
|
||||
goto err_del_adevs;
|
||||
}
|
||||
mutex_unlock(&pci_adapter->pdev_mutex);
|
||||
|
||||
return 0;
|
||||
|
||||
err_del_adevs:
|
||||
@@ -133,6 +134,7 @@ static int hinic3_attach_aux_devices(struct hinic3_hwdev *hwdev)
|
||||
}
|
||||
}
|
||||
mutex_unlock(&pci_adapter->pdev_mutex);
|
||||
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -154,6 +156,7 @@ struct hinic3_hwdev *hinic3_adev_get_hwdev(struct auxiliary_device *adev)
|
||||
struct hinic3_adev *hadev;
|
||||
|
||||
hadev = container_of(adev, struct hinic3_adev, adev);
|
||||
|
||||
return hadev->hwdev;
|
||||
}
|
||||
|
||||
@@ -335,6 +338,7 @@ static int hinic3_probe_func(struct hinic3_pcidev *pci_adapter)
|
||||
|
||||
err_out:
|
||||
dev_err(&pdev->dev, "PCIe device probe function failed\n");
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -367,6 +371,7 @@ static int hinic3_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
|
||||
err_out:
|
||||
dev_err(&pdev->dev, "PCIe device probe failed\n");
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,7 @@ int hinic3_set_port_mtu(struct net_device *netdev, u16 new_mtu)
|
||||
struct hinic3_hwdev *hwdev = nic_dev->hwdev;
|
||||
|
||||
func_tbl_cfg.mtu = new_mtu;
|
||||
|
||||
return hinic3_set_function_table(hwdev, BIT(L2NIC_FUNC_TBL_CFG_MTU),
|
||||
&func_tbl_cfg);
|
||||
}
|
||||
|
||||
@@ -116,6 +116,7 @@ static int hinic3_tx_map_skb(struct net_device *netdev, struct sk_buff *skb,
|
||||
}
|
||||
dma_unmap_single(&pdev->dev, dma_info[0].dma, dma_info[0].len,
|
||||
DMA_TO_DEVICE);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -601,6 +602,7 @@ netdev_tx_t hinic3_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
|
||||
|
||||
err_drop_pkt:
|
||||
dev_kfree_skb_any(skb);
|
||||
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user