Skip to content

Commit

Permalink
hwrng: cn10k - delete empty remove function
Browse files Browse the repository at this point in the history
The remove function is empty, we can delete it. It's ok for a PCI driver
to have no remove function.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
martin-kaiser authored and herbertx committed Jul 28, 2023
1 parent 9553ae3 commit 5a3d66a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/char/hw_random/cn10k-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,6 @@ static int cn10k_rng_probe(struct pci_dev *pdev, const struct pci_device_id *id)
return 0;
}

static void cn10k_rng_remove(struct pci_dev *pdev)
{
/* Nothing to do */
}

static const struct pci_device_id cn10k_rng_id_table[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, 0xA098) }, /* RNG PF */
{0,},
Expand All @@ -229,7 +224,6 @@ static struct pci_driver cn10k_rng_driver = {
.name = "cn10k_rng",
.id_table = cn10k_rng_id_table,
.probe = cn10k_rng_probe,
.remove = cn10k_rng_remove,
};

module_pci_driver(cn10k_rng_driver);
Expand Down

0 comments on commit 5a3d66a

Please sign in to comment.