Commit d5aeec59 authored by Fan Gong's avatar Fan Gong Committed by Paolo Abeni
Browse files

hinic3: Fix code style (Missing a blank line before return)

parent 4404f6af
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
}

+1 −0
Original line number Diff line number Diff line
@@ -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);
}
+2 −0
Original line number Diff line number Diff line
@@ -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;
}