[PATCH 1/4] Add framework for tunables
Andreas Schwab
schwab@linux-m68k.org
Mon Feb 6 22:59:00 GMT 2017
On Dez 30 2016, Siddhesh Poyarekar <siddhesh@sourceware.org> wrote:
> +/* Set the tunable value. This is called by the module that the tunable exists
> + in. */
> +void
> +__tunable_set_val (tunable_id_t id, void *valp, tunable_callback_t callback)
> +{
> + tunable_t *cur = &tunable_list[id];
> +
> + /* Don't do anything if our tunable was not set during initialization or if
> + it failed validation. */
> + if (cur->strval == NULL)
> + return;
> +
> + if (valp == NULL)
> + goto cb;
Why goto?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list