summaryrefslogtreecommitdiffstats
path: root/disp.c
diff options
context:
space:
mode:
Diffstat (limited to 'disp.c')
-rw-r--r--disp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/disp.c b/disp.c
index 7ef02ab..3e46b54 100644
--- a/disp.c
+++ b/disp.c
@@ -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;