net: reduce indentation of __dev_alloc_name()
authorJakub Kicinski <kuba@kernel.org>
Mon, 23 Oct 2023 15:23:43 +0000 (08:23 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Oct 2023 20:02:58 +0000 (13:02 -0700)
commit9a810468126c846299d867f73dd7053064c29be1
tree2fcbc80d2c1a3e3bdab9a1f9d3b62d836719c5b0
parent556c755a4d8143007c745b6ad894611a04173b53
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>
net/core/dev.c