]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: rename local variable max -> curr
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 1 Oct 2018 12:51:35 +0000 (14:51 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Oct 2018 07:31:00 +0000 (09:31 +0200)
commitfb740999b2d6e0c1a714f918689570d718f87c01
tree527a9a97a73ce3b6af3427b18e83fde0df924fdf
parent0a48449cb6440b25d84d3dd3a10b7eaa6bb2c3e7
ethtool: rename local variable max -> curr

ethtool_set_channels() validates the config against driver's max
settings. It retrieves the current config and stores it in a
variable called max. This was okay when only max settings were
accessed but we will soon want to access current settings as
well, so calling the entire structure max makes the code less
readable.

While at it drop unnecessary parenthesis.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/ethtool.c