BugID:17131986:[WhiteScan] [587274] [FORWARD_NULL] /home/iot/WhiteScan/network/sal/athost/util/at_util.c
@@ -333,11 +333,7 @@ int send_over_uart(uart_send_info_t *msgptr)
int ret;
int size = 0;
- if (!msgptr) {
- return -1;
- }
-
- if (!msgptr->cmdptr && !msgptr->dataptr) {
+ if (!msgptr || !msgptr->cmdptr) {
return -1;
}
