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

Configure Feed

Select the types of activity you want to include in your feed.

driver core: Remove needless return in void API device_remove_group()

Remove return since both device_remove_group() and device_remove_groups()
are void functions.

Fixes: e323b2dddc1c ("driver core: add device_{add|remove}_group() helpers")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250208-fix_device_remove_group-v1-1-8a5b0ac0ce5c@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zijun Hu and committed by
Greg Kroah-Hartman
a44073c2 8fd74a31

+1 -1
+1 -1
include/linux/device.h
··· 1268 1268 { 1269 1269 const struct attribute_group *groups[] = { grp, NULL }; 1270 1270 1271 - return device_remove_groups(dev, groups); 1271 + device_remove_groups(dev, groups); 1272 1272 } 1273 1273 1274 1274 int __must_check devm_device_add_group(struct device *dev,