[dpdk-dev] [PATCH 21.08] power: refactor pstate sysfs handling
Stephen Hemminger
stephen at networkplumber.org
Fri Apr 2 19:45:04 CEST 2021
On Thu, 1 Apr 2021 15:05:17 +0000
Anatoly Burakov <anatoly.burakov at intel.com> wrote:
>
> +#define FOPEN_OR_ERR_GOTO(f, label) do { \
> + if ((f) == NULL) { \
> + RTE_LOG(ERR, POWER, "File not opened\n"); \
> + goto label; \
> + } \
> +} while (0)
> +
I am not a fan of macros like this that have gotos.
It is clearer to just open code it.
More information about the dev
mailing list