[PATCH 2/7] msm: qdspv2: apr: remove unused apr_fill_hdr()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Eero Nurkkala <eero.nurkkala@xxxxxxxxxx>

Remove the unused function to make things more readable.

Signed-off-by: Eero Nurkkala <eero.nurkkala@xxxxxxxxxx>
---
 arch/arm/mach-msm/qdsp6v2/apr.c |   48 ---------------------------------------
 1 files changed, 0 insertions(+), 48 deletions(-)

diff --git a/arch/arm/mach-msm/qdsp6v2/apr.c b/arch/arm/mach-msm/qdsp6v2/apr.c
index fabf4e5..d1029b2 100644
--- a/arch/arm/mach-msm/qdsp6v2/apr.c
+++ b/arch/arm/mach-msm/qdsp6v2/apr.c
@@ -41,54 +41,6 @@
 struct apr_q6 q6;
 struct apr_client client[APR_DEST_MAX][APR_CLIENT_MAX];
 
-inline int apr_fill_hdr(void *handle, uint32_t *buf, uint16_t src_port,
-			uint16_t msg_type, uint16_t dest_port,
-			uint32_t token, uint32_t opcode, uint16_t h_len)
-{
-	struct apr_svc *svc = handle;
-	struct apr_client *clnt;
-	struct apr_hdr *hdr;
-	uint16_t dest_id;
-	uint16_t client_id;
-	uint16_t type;
-	uint16_t hdr_len;
-	uint16_t ver;
-
-	if (!handle || !buf || h_len < APR_HDR_SIZE) {
-		pr_err("APR: Wrong parameters\n");
-		return -EINVAL;
-	}
-	dest_id = svc->dest_id;
-	client_id = svc->client_id;
-	clnt = &client[dest_id][client_id];
-
-	if (!client[dest_id][client_id].handle) {
-		pr_err("APR: Still service is not yet opened\n");
-		return -EINVAL;
-	}
-
-	hdr = (struct apr_hdr *)buf;
-	hdr_len = h_len >> 2;
-	hdr->pkt_size = h_len;
-	hdr->src_domain = APR_DOMAIN_APPS;
-	hdr->src_svc = svc->id;
-	hdr->dest_svc = svc->id;
-	if (dest_id == APR_DEST_MODEM)
-		hdr->dest_domain = APR_DOMAIN_MODEM;
-	else if (dest_id == APR_DEST_QDSP6)
-		hdr->dest_domain = APR_DOMAIN_ADSP;
-
-	hdr->src_port = src_port;
-	hdr->dest_port = dest_port;
-	hdr->token = token;
-	hdr->opcode = opcode;
-	ver = APR_PKT_VER;
-	type = msg_type;
-	hdr->hdr_field = ((msg_type & 0x0003) << 0x8) |
-			((hdr_len & 0x000F) << 0x4) | (ver & 0x000F);
-	return 0;
-}
-
 int apr_send_pkt(void *handle, uint32_t *buf)
 {
 	struct apr_svc *svc = handle;
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux