]> 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)
commiteb07e25186f3f1366529ab46ea087a2b8a160adf
tree1d265c27271aac617291965753a71cc40e5d31fd
parent797fecd68d03fd0fcfecf1423e03fa7944a479f0
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