Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: SMP: convert timeouts to secs_to_jiffies()

Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() for readability.

Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Easwar Hariharan and committed by
Luiz Augusto von Dentz
3f0a819e e3e627e6

+1 -1
+1 -1
net/bluetooth/smp.c
··· 55 55 /* Keys which are not distributed with Secure Connections */ 56 56 #define SMP_SC_NO_DIST (SMP_DIST_ENC_KEY | SMP_DIST_LINK_KEY) 57 57 58 - #define SMP_TIMEOUT msecs_to_jiffies(30000) 58 + #define SMP_TIMEOUT secs_to_jiffies(30) 59 59 60 60 #define ID_ADDR_TIMEOUT msecs_to_jiffies(200) 61 61