diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2025-02-08 22:15:26 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-20 12:47:56 +0100 |
commit | 8fd74a31eaf3def0d57264ada57fc981902aeadf (patch) | |
tree | f831b1b607a8bc933571a20336a2529b1860afcb | |
parent | 6ef5b6fae304091593956be59065c0c8633ad9e8 (diff) |
driver core: class: Remove needless return in void API class_remove_file()
Remove return since both class_remove_file() and class_remove_file_ns()
are void functions.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250208-cls_rmv_return-v1-1-091b37945aac@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/linux/device/class.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device/class.h b/include/linux/device/class.h index 45ee3a634999..65880e60c720 100644 --- a/include/linux/device/class.h +++ b/include/linux/device/class.h @@ -193,7 +193,7 @@ static inline int __must_check class_create_file(const struct class *class, static inline void class_remove_file(const struct class *class, const struct class_attribute *attr) { - return class_remove_file_ns(class, attr, NULL); + class_remove_file_ns(class, attr, NULL); } /* Simple class attribute that is just a static string */ |