dvb: Fix set-but-unused warnings

This commit is contained in:
Olivier Crête 2011-07-12 18:13:56 -04:00
parent f4caf95a15
commit d369f620de
3 changed files with 7 additions and 10 deletions

View file

@ -171,22 +171,22 @@ static CamReturn
data_impl (CamALApplication * application, CamSLSession * session,
guint tag, guint8 * buffer, guint length)
{
CamReturn ret;
CamResourceManager *mgr = CAM_RESOURCE_MANAGER (application);
switch (tag) {
case TAG_PROFILE_ENQUIRY:
ret = send_profile_reply (mgr, session);
send_profile_reply (mgr, session);
break;
case TAG_PROFILE_REPLY:
ret = handle_profile_reply (mgr, session, buffer, length);
handle_profile_reply (mgr, session, buffer, length);
break;
case TAG_PROFILE_CHANGE:
ret = send_profile_enquiry (mgr, session);
send_profile_enquiry (mgr, session);
break;
default:
g_return_val_if_reached (CAM_RETURN_APPLICATION_ERROR);
}
/* FIXME: Shouldn't this return the retval from the functions above ? */
return CAM_RETURN_OK;
}

View file

@ -379,8 +379,6 @@ static CamReturn
handle_create_session_response (CamSL * sl, CamTLConnection * connection,
guint8 * spdu, guint spdu_length)
{
guint8 status;
guint resource_id;
guint16 session_nb;
CamSLSession *session;
@ -398,8 +396,8 @@ handle_create_session_response (CamSL * sl, CamTLConnection * connection,
}
/* skip tag and length */
status = spdu[2];
resource_id = GST_READ_UINT32_BE (&spdu[3]);
/* status = spdu[2]; */
/* resource_id = GST_READ_UINT32_BE (&spdu[3]); */
session_nb = GST_READ_UINT16_BE (&spdu[7]);
session = g_hash_table_lookup (sl->sessions,

View file

@ -224,7 +224,6 @@ cam_tl_read_tpdu_next (CamTL * tl, CamTLConnection ** out_connection)
{
CamReturn ret;
CamTLConnection *connection;
guint8 slot;
guint8 connection_id;
guint8 *tpdu;
guint8 length_field_len;
@ -244,7 +243,7 @@ cam_tl_read_tpdu_next (CamTL * tl, CamTLConnection ** out_connection)
}
/* LPDU slot */
slot = tpdu[0];
/* slot = tpdu[0]; */
/* LPDU connection id */
connection_id = tpdu[1];