summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/misc.c b/misc.c
index aa5c87b..95128b5 100644
--- a/misc.c
+++ b/misc.c
@@ -86,7 +86,7 @@ void ipc_misc_me_sn_imei(struct ipc_message_info *info)
char imei[33];
char imeisv[3];
- if (info == NULL || info->data == NULL || info->length < sizeof(struct ipc_misc_me_sn))
+ if (info->data == NULL || info->length < sizeof(struct ipc_misc_me_sn))
goto error;
imei_info = (struct ipc_misc_me_sn *) info->data;
@@ -129,7 +129,7 @@ void ipc_misc_me_sn_imei(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);
}
@@ -137,7 +137,7 @@ void ipc_misc_me_sn(struct ipc_message_info *info)
{
struct ipc_misc_me_sn *me_sn_info;
- if (info == NULL || info->data == NULL || info->length < sizeof(struct ipc_misc_me_sn))
+ if (info->data == NULL || info->length < sizeof(struct ipc_misc_me_sn))
goto error;
if (info->type != IPC_TYPE_RESP)
@@ -158,7 +158,7 @@ void ipc_misc_me_sn(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);
}
@@ -188,7 +188,7 @@ void ipc_misc_me_version(struct ipc_message_info *info)
struct ipc_misc_me_version *version;
RIL_Token t;
- if (info == NULL || info->data == NULL || info->length < sizeof(struct ipc_misc_me_version))
+ if (info->data == NULL || info->length < sizeof(struct ipc_misc_me_version))
goto error;
if (info->type != IPC_TYPE_RESP)
@@ -210,7 +210,7 @@ void ipc_misc_me_version(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);
}
@@ -224,7 +224,7 @@ void ipc_misc_me_imsi(struct ipc_message_info *info)
unsigned char imsi_length;
char *imsi;
- if (info == NULL || info->data == NULL || info->length < sizeof(unsigned char))
+ if (info->data == NULL || info->length < sizeof(unsigned char))
goto error;
/* Don't consider this if modem isn't in normal power mode. */
@@ -251,7 +251,7 @@ void ipc_misc_me_imsi(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);
}
@@ -260,7 +260,7 @@ void ipc_misc_time_info(struct ipc_message_info *info)
struct ipc_misc_time_info *nitz;
char str[128];
- if (info == NULL || info->data == NULL || info->length < sizeof(struct ipc_misc_time_info))
+ if (info->data == NULL || info->length < sizeof(struct ipc_misc_time_info))
return;
nitz = (struct ipc_misc_time_info *) info->data;