Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb78d7e5 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

Bluetooth: Use zero timeout for immediate scheduling



There's no point in passing a "small" timeout to queue_delayed_work() to
try to get the callback faster scheduled. Passing 0 is perfectly valid
and will cause a shortcut to a direct queue_work().

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent f6c63249
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -791,7 +791,7 @@ static inline void hci_conn_drop(struct hci_conn *conn)
				if (!conn->out)
					timeo *= 2;
			} else {
				timeo = msecs_to_jiffies(10);
				timeo = 0;
			}
			break;

@@ -800,7 +800,7 @@ static inline void hci_conn_drop(struct hci_conn *conn)
			break;

		default:
			timeo = msecs_to_jiffies(10);
			timeo = 0;
			break;
		}