net: ieee802154: Remove unneeded check
Fixes dead code warning. At this point we have already checked for
broadcast and it is set to false.
@@ -753,7 +753,7 @@ bool ieee802154_create_data_frame(struct ieee802154_context *ctx, struct net_lin
}
/* Let's encrypt/auth only in the end, if needed */
- if (!ieee802154_encrypt_auth(broadcast ? NULL : &ctx->sec_ctx, buf_start, hdr_len,
+ if (!ieee802154_encrypt_auth(&ctx->sec_ctx, buf_start, hdr_len,
payload_len, tag_size, ctx->ext_addr)) {
goto out;
};
