Commit cbf8db23 authored by Cosmin Tanislav's avatar Cosmin Tanislav Committed by William Breathitt Gray
Browse files

counter: sysfs: remove double return in counter_sysfs_attr_add()



sysfs attribute creation for counter extensions has been consolidated
into a single function, counter_sysfs_exts_add().

Inside counter_sysfs_attr_add(), although the code was changed to return
the result of counter_sysfs_exts_add(), an unreachable return 0;
statement was left at the end of the function.

Remove it.

Fixes: bb4bbbec ("counter: Consolidate Counter extension sysfs attribute creation")
Signed-off-by: default avatarCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Link: https://lore.kernel.org/r/20260204180032.514328-1-cosmin-gabriel.tanislav.xa@renesas.com


Signed-off-by: default avatarWilliam Breathitt Gray <wbg@kernel.org>
parent f338e773
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1101,8 +1101,6 @@ static int counter_sysfs_attr_add(struct counter_device *const counter,
	/* Add device extensions */
	return counter_sysfs_exts_add(dev, cattr_group, counter->ext,
				      counter->num_ext, scope, NULL);

	return 0;
}

/**