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

Commit 924ed6ca authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove unnecessary local variable copy.

It is only set to null in Run, protected by mutex_.
It is only set to non null in Unregister, protected by reactable->mutex_

So if we're holding mutex_, it can only transition to non-null.

Meaning if we check it an it is not null, it cannot change.

Test: gd/fuzzing/run --host bluetooth_gd_hci_fuzz_test
Change-Id: Iea2dbc1e050531408ca4a153f088b0dbf8f6cbd7
parent 40b77d39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment