Bluetooth: SMP: Remove redundant check for smp pointer
The smp pointer is the return value of CONTAINER_OF() which is guaranteed to always be non-NULL. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
4752788c81
commit
da8f62de3a
1 changed files with 1 additions and 1 deletions
|
@ -3580,7 +3580,7 @@ static void bt_smp_encrypt_change(struct bt_l2cap_chan *chan,
|
|||
return;
|
||||
}
|
||||
|
||||
if (!smp || !conn->encrypt) {
|
||||
if (!conn->encrypt) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue