OSDN Git Service

genetlink: Use string_is_terminated() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Feb 2023 13:31:52 +0000 (15:31 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Feb 2023 06:30:24 +0000 (22:30 -0800)
commitd4545bf9c33baa482daea845ddf8d5fdb26daee3
tree67cfdb7d6f951ad9687ffc033471c61e8b33921c
parentf1db99c07b4f0a9edc45f3498d4d13d13a41836a
genetlink: Use string_is_terminated() helper

Use string_is_terminated() helper instead of cpecific memchr() call.
This shows better the intention of the call.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230208133153.22528-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/netlink/genetlink.c