Commit d39d462a authored by Yuesong Li's avatar Yuesong Li Committed by Johannes Berg
Browse files

wifi: ipw2x00: convert to use secs_to_jiffies



Since secs_to_jiffies()(commit:b35108a5) has been introduced, we can
use it to avoid scaling the time to msec.

Signed-off-by: default avatarYuesong Li <liyuesong@vivo.com>
Link: https://patch.msgid.link/20250613102624.3077418-1-liyuesong@vivo.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 84ff903b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ void libipw_networks_age(struct libipw_device *ieee,
{
	struct libipw_network *network = NULL;
	unsigned long flags;
	unsigned long age_jiffies = msecs_to_jiffies(age_secs * MSEC_PER_SEC);
	unsigned long age_jiffies = secs_to_jiffies(age_secs);

	spin_lock_irqsave(&ieee->lock, flags);
	list_for_each_entry(network, &ieee->network_list, list) {