lkml.org 
[lkml]   [2024]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] staging: pi433: Rename goto label.
Date
Use destroy_class_and_remove_dbfs instead of unreg_class_and_remove_dbfs.

Signed-off-by: Shahar Avidar <ikobh7@gmail.com>
---
drivers/staging/pi433/pi433_if.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index c8c1d296184b..4fffd7007040 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -1409,11 +1409,11 @@ static int __init pi433_init(void)

status = spi_register_driver(&pi433_spi_driver);
if (status < 0)
- goto unreg_class_and_remove_dbfs;
+ goto destroy_class_and_remove_dbfs;

return 0;

-unreg_class_and_remove_dbfs:
+destroy_class_and_remove_dbfs:
debugfs_remove(root_dir);
class_destroy(pi433_class);
unreg_chrdev:
--
2.34.1

\
 
 \ /
  Last update: 2024-05-27 18:11    [W:0.142 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site