mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
net: hns3: remove redundant variable initialization
This patch removes the redundant variable initialization, as driver will devm_kzalloc to set value to hdev soon. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
31a16f99e0
commit
1154bb26c8
1 changed files with 1 additions and 1 deletions
|
|
@ -1721,7 +1721,7 @@ static int hclgevf_configure(struct hclgevf_dev *hdev)
|
|||
static int hclgevf_alloc_hdev(struct hnae3_ae_dev *ae_dev)
|
||||
{
|
||||
struct pci_dev *pdev = ae_dev->pdev;
|
||||
struct hclgevf_dev *hdev = ae_dev->priv;
|
||||
struct hclgevf_dev *hdev;
|
||||
|
||||
hdev = devm_kzalloc(&pdev->dev, sizeof(*hdev), GFP_KERNEL);
|
||||
if (!hdev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue