Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zijun Hu and committed by
Greg Kroah-Hartman
8fd74a31 6ef5b6fa

+1 -1
+1 -1
include/linux/device/class.h
··· 193 193 static inline void class_remove_file(const struct class *class, 194 194 const struct class_attribute *attr) 195 195 { 196 - return class_remove_file_ns(class, attr, NULL); 196 + class_remove_file_ns(class, attr, NULL); 197 197 } 198 198 199 199 /* Simple class attribute that is just a static string */