diff --git a/sys/dvb/camresourcemanager.c b/sys/dvb/camresourcemanager.c index 2b6169fde1..f7b473a0e6 100644 --- a/sys/dvb/camresourcemanager.c +++ b/sys/dvb/camresourcemanager.c @@ -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; } diff --git a/sys/dvb/camsession.c b/sys/dvb/camsession.c index 4fe728e363..4e4e391d7a 100644 --- a/sys/dvb/camsession.c +++ b/sys/dvb/camsession.c @@ -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, diff --git a/sys/dvb/camtransport.c b/sys/dvb/camtransport.c index 98467f0643..30780db720 100644 --- a/sys/dvb/camtransport.c +++ b/sys/dvb/camtransport.c @@ -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];