]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: 3ad: make ad_ticks_per_sec a const
authorJonathan Toppins <jtoppins@redhat.com>
Fri, 19 Aug 2022 15:15:14 +0000 (11:15 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Aug 2022 01:30:24 +0000 (18:30 -0700)
commit8526bdff99dca2fe6976a7ab8aa367687f6f76f2
tree1d265c27271aac617291965753a71cc40e5d31fd
parent0459f03d757eb911c49c135162da5f4d39cc5592
bonding: 3ad: make ad_ticks_per_sec a const

The value is only ever set once in bond_3ad_initialize and only ever
read otherwise. There seems to be no reason to set the variable via
bond_3ad_initialize when setting the global variable will do. Change
ad_ticks_per_sec to a const to enforce its read-only usage.

Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_main.c
include/net/bond_3ad.h