From: Zijun Hu Date: Sat, 8 Feb 2025 14:15:26 +0000 (+0800) Subject: driver core: class: Remove needless return in void API class_remove_file() X-Git-Tag: v6.15-rc1~79^2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd74a31eaf3def0d57264ada57fc981902aeadf;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20250208-cls_rmv_return-v1-1-091b37945aac@quicinc.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/device/class.h b/include/linux/device/class.h index 45ee3a6349993..65880e60c7208 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 */