diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-03-31 22:46:24 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-03-31 22:48:21 +0200 |
commit | ab6eef687bc891e3e47edd43cee7e39336d30d26 (patch) | |
tree | bb61b1c5fc844cc78ec1311dc830cdb40c787229 /disp.c | |
parent | 05951ff716f62b05da40fef1aa1f82e2fa9d2601 (diff) | |
download | hardware_ril_samsung-ril-ab6eef687bc891e3e47edd43cee7e39336d30d26.zip hardware_ril_samsung-ril-ab6eef687bc891e3e47edd43cee7e39336d30d26.tar.gz hardware_ril_samsung-ril-ab6eef687bc891e3e47edd43cee7e39336d30d26.tar.bz2 |
Avoid checking ipc_message_info pointer since it is checked in readloop
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'disp.c')
-rw-r--r-- | disp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -110,7 +110,7 @@ void ipc_disp_icon_info(struct ipc_message_info *info) RIL_SignalStrength ss; #endif - if (info == NULL || info->data == NULL || info->length < sizeof(struct ipc_disp_icon_info)) + if (info->data == NULL || info->length < sizeof(struct ipc_disp_icon_info)) goto error; icon_info = (struct ipc_disp_icon_info *) info->data; @@ -131,7 +131,7 @@ void ipc_disp_icon_info(struct ipc_message_info *info) return; error: - if (info != NULL && info->type == IPC_TYPE_RESP) + if (info->type == IPC_TYPE_RESP) ril_request_complete(ril_request_get_token(info->aseq), RIL_E_GENERIC_FAILURE, NULL, 0); } @@ -145,7 +145,7 @@ void ipc_disp_rssi_info(struct ipc_message_info *info) #endif int rssi; - if (info == NULL || info->data == NULL || info->length < sizeof(struct ipc_disp_rssi_info)) + if (info->data == NULL || info->length < sizeof(struct ipc_disp_rssi_info)) return; rssi_info = (struct ipc_disp_rssi_info *) info->data; |