Skip to contentSkip to conversation

libtracefs: Fix the label usage in tracefs_instance_set_affinity()

PATCH Steven Rostedt 1 participant 1 message Mar 13, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · On Sun, 12 Mar 2023 21:32:23 +0100 Markus Elfring <[email protected]> wrote:

Date: Sun, 12 Mar 2023 21:24:34 +0100

The label “out” was used to jump to a source code place after some failure cases. This implementation detail hindered better exception handling.

Use more appropriate labels instead.

Quoted 8 lines

* Reorder jump targets at the end.

* Omit an extra initialisation (for the variable “set”) which became unnecessary with this refactoring.

Fixes 987d8c1a62dadff45e6006c4ce5f3bd138842567 ("libtracefs: Add tracefs_instance_set_affinity() APIs")

Please, stop these patches. I do not feel this type of patch is important enough for the churn.

-- Steve