diff --git a/components/target_if/disa/src/target_if_disa.c b/components/target_if/disa/src/target_if_disa.c index 055497d677578..5e37fac75fa77 100644 --- a/components/target_if/disa/src/target_if_disa.c +++ b/components/target_if/disa/src/target_if_disa.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -35,7 +35,7 @@ target_if_encrypt_decrypt_event_handler(ol_scn_t scn_handle, uint8_t *data, struct wlan_objmgr_psoc *psoc; wmi_unified_t wmi_handle; - if (data == NULL) { + if (!data) { target_if_err("%s: invalid pointer", __func__); return -EINVAL; } diff --git a/components/target_if/pmo/src/target_if_pmo_lphb.c b/components/target_if/pmo/src/target_if_pmo_lphb.c index fcf9dd46eca74..02c79de6d0542 100644 --- a/components/target_if/pmo/src/target_if_pmo_lphb.c +++ b/components/target_if/pmo/src/target_if_pmo_lphb.c @@ -113,7 +113,7 @@ QDF_STATUS target_if_pmo_send_lphb_tcp_pkt_filter(struct wlan_objmgr_psoc *psoc, wmi_hb_set_tcp_pkt_filter_cmd_fixed_param hb_tcp_filter_fp = {0}; wmi_unified_t wmi_handle; - if (ts_lphb_tcp_filter == NULL) { + if (!ts_lphb_tcp_filter) { target_if_err("TCP PKT FILTER LPHB configuration is NULL"); return QDF_STATUS_E_FAILURE; }