Bluetooth: SMP: convert timeouts to secs_to_jiffies()
Commit b35108a51c ("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>
This commit is contained in:
committed by
Luiz Augusto von Dentz
parent
e3e627e6b2
commit
3f0a819e8c
+1
-1
@@ -55,7 +55,7 @@
|
||||
/* Keys which are not distributed with Secure Connections */
|
||||
#define SMP_SC_NO_DIST (SMP_DIST_ENC_KEY | SMP_DIST_LINK_KEY)
|
||||
|
||||
#define SMP_TIMEOUT msecs_to_jiffies(30000)
|
||||
#define SMP_TIMEOUT secs_to_jiffies(30)
|
||||
|
||||
#define ID_ADDR_TIMEOUT msecs_to_jiffies(200)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user