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:
Johan Hedberg 2018-07-31 13:27:44 +03:00 committed by Johan Hedberg
commit da8f62de3a

View file

@ -3580,7 +3580,7 @@ static void bt_smp_encrypt_change(struct bt_l2cap_chan *chan,
return;
}
if (!smp || !conn->encrypt) {
if (!conn->encrypt) {
return;
}