Skip to content

Commit 43ee11a

Browse files
ij-intelbjorn-helgaas
authored andcommitted
PCI: hotplug: Remove "Returns" kerneldoc from void functions
pci_hp_deregister() was converted to void by the commit 51bbf9b ("PCI: hotplug: Demidlayer registration with the core") but its kerneldoc still describes the return value. pci_hp_del() and pci_hp_destroy() have been void since they were introduced in that same commit. Remove the return value description from the kerneldoc of those functions. Link: https://lore.kernel.org/r/20240930124436.17908-1-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent b21a18f commit 43ee11a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/pci/hotplug/pci_hotplug_core.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,6 @@ EXPORT_SYMBOL_GPL(pci_hp_add);
498498
*
499499
* The @slot must have been registered with the pci hotplug subsystem
500500
* previously with a call to pci_hp_register().
501-
*
502-
* Returns 0 if successful, anything else for an error.
503501
*/
504502
void pci_hp_deregister(struct hotplug_slot *slot)
505503
{
@@ -513,8 +511,6 @@ EXPORT_SYMBOL_GPL(pci_hp_deregister);
513511
* @slot: pointer to the &struct hotplug_slot to unpublish
514512
*
515513
* Remove a hotplug slot's sysfs interface.
516-
*
517-
* Returns 0 on success or a negative int on error.
518514
*/
519515
void pci_hp_del(struct hotplug_slot *slot)
520516
{
@@ -545,8 +541,6 @@ EXPORT_SYMBOL_GPL(pci_hp_del);
545541
* the driver may no longer invoke hotplug_slot_name() to get the slot's
546542
* unique name. The driver no longer needs to handle a ->reset_slot callback
547543
* from this point on.
548-
*
549-
* Returns 0 on success or a negative int on error.
550544
*/
551545
void pci_hp_destroy(struct hotplug_slot *slot)
552546
{

0 commit comments

Comments
 (0)