diff options
author | 2023-10-23 08:23:43 -0700 | |
---|---|---|
committer | 2023-10-24 13:02:58 -0700 | |
commit | 9a810468126c846299d867f73dd7053064c29be1 (patch) | |
tree | 2fcbc80d2c1a3e3bdab9a1f9d3b62d836719c5b0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: make dev_alloc_name() call dev_prep_valid_name() (diff) | |
download | wireguard-linux-9a810468126c846299d867f73dd7053064c29be1.tar.xz wireguard-linux-9a810468126c846299d867f73dd7053064c29be1.zip |
net: reduce indentation of __dev_alloc_name()
All callers of __dev_valid_name() go thru dev_prep_valid_name()
which handles the non-printf case. Focus __dev_alloc_name() on
the sprintf case, remove the indentation level.
Minor functional change of returning -EINVAL if % is not found,
which should now never happen.
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231023152346.3639749-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions