mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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>
This commit is contained in:
parent
6ef5b6fae3
commit
8fd74a31ea
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user