Bluetooth: mesh: Remove redundant expression

Remove checking of the same argument twice.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-04-02 15:58:35 +02:00 committed by Johan Hedberg
commit 21c37a6c6a

View file

@ -374,7 +374,7 @@ static void gen_prov_ack(struct prov_rx *rx, struct net_buf_simple *buf)
prov_clear_tx();
}
if (link.tx.cb && link.tx.cb) {
if (link.tx.cb) {
link.tx.cb(0, link.tx.cb_data);
}
}