From patchwork Mon Jun 12 16:27:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 103659 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp77792obh; Mon, 12 Jun 2017 09:31:44 -0700 (PDT) X-Received: by 10.84.176.3 with SMTP id u3mr58219865plb.119.1497285104239; Mon, 12 Jun 2017 09:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497285104; cv=none; d=google.com; s=arc-20160816; b=c8WwnqDKy/bey5f0y+a4UYMN8u92Q8zSj6xDl/44d2zqCtkSlMKNO8MacS4Q1Qmanx 9O5NU7jvazqiAp6JhtjlBmNFO5LZGf7T1uCM4/O6gDYJUZJxeyL7A79cjHBiSWkb0py5 nMIJxCgYXhESJieOZvmRvQ8Q6rvyBMflvUtFFCApAaaFbL08X6hZuptXCOWiEfUSIp4v Y4a/I5gflzQcXJY9OVjS5ioA+VpTMZgIuoniv56Jp6VxQTTDzQO7cBiMk9d5ZJaf79uf +KeRJ7NkmwnF5qXuaNiFqpJku9u327QZm77yROJ2Xw80DBXC++MpgTxgta0TShnA9c4F e+Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=sszVJvib0J7/086CDKJFosVu/AaP+H1cphBTLXu8dxU=; b=mZPpd9kN6aW8C2VwHC5SFmyZMoXrcHv7i1KRY4JqvbX9nTjaUnaI/E4bjq77B8+/TL Qof2NSpdoLTXhaHlFtK4Zckms/vRqm0rq2/Z3yBXrXq2ZbCoYfkymOwCkeEDd+vxwk3u A9XCcn7kvtB3rukVEbyFfMYDbmhfO/qoCnN9ecII3qQ/1zXt8tobHaBleLAJpIgT9Hxf Cmv1YuA0z92OwtQboI8IjSFYhhcpLGQbnB3XV35uZpmu2o7ZpXQWSIY6b0ZYhMyxJOpa exd5Bc4m5r7tSU8dhoj1vPJpATwGJ9CCF7V8NoStPBl/+6ugR2zlKnIw0pxx9IbzK9SW fBxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r90si7259987pfe.5.2017.06.12.09.31.43; Mon, 12 Jun 2017 09:31:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754887AbdFLQaF (ORCPT + 10 others); Mon, 12 Jun 2017 12:30:05 -0400 Received: from mail-wr0-f169.google.com ([209.85.128.169]:33281 "EHLO mail-wr0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932115AbdFLQaD (ORCPT ); Mon, 12 Jun 2017 12:30:03 -0400 Received: by mail-wr0-f169.google.com with SMTP id v104so101968765wrb.0 for ; Mon, 12 Jun 2017 09:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=E7MCo3eDdxLrovktBzarxBxkX5MMJCR3fnZ3Y71nabk=; b=E2NUjhkAC29Urgeb1LHb6yvPEKTirEPrfdxHJ5roFDRtePEEox+1xvLx1ShJDKiQA7 oMyoejRB2N0+hUCqzJWiQ3B8tBDUaPLlpJxTAGFa7NZGRlHeKzrpLAtErJ/l4AxFAlmy oSz9fq3I5UrPwGSTII6pGlgjBaiIa/wJ+G0z4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=E7MCo3eDdxLrovktBzarxBxkX5MMJCR3fnZ3Y71nabk=; b=C7j22obGNo6ZKGRLkH2L5uavXLprhhz8WtlWFszA/wmNJV8cJoDie6aWvgcQO19FYZ NfYWa6L9BwrSjG0cY+1JYjaI5Fu5sm8uGtRHk0Y3/ga1995cKfrXEMViR+H/F5snpXpf TnZFarXTJLPBKzwWcNwvbymXN0qKTM9a0e6lJwNU4oZjUN61J2qbiBHLVsNMxPEe7sWT 7syYx8YalduJwcaop/uymFbWwMzuoSRUdo3fWNSr4HES6HdmZdHve+C+ZnLoW6HeaW52 dVEo+3aEZqlPtpKuf9GmQBXMl3LHjxKYRFreJqmM7yOdLGFSceRHr6nTmuxa9z5D8Lzj QJng== X-Gm-Message-State: AKS2vOxDxQANEErAfqRuplpHWofSTgX1mkJaIAqJK7453+qIQg49ynVO o6ceCg3ijKhOVVh3 X-Received: by 10.28.47.79 with SMTP id v76mr5816073wmv.34.1497284995230; Mon, 12 Jun 2017 09:29:55 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 49sm14493531wrz.8.2017.06.12.09.29.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 09:29:54 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH v10 14/18] media: venus: hfi_msgs: fix set but not used variables Date: Mon, 12 Jun 2017 19:27:51 +0300 Message-Id: <1497284875-19999-15-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497284875-19999-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497284875-19999-1-git-send-email-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This fixes a warning found when building with gcc7: drivers/media/platform/qcom/venus/hfi_msgs.c:465:40: warning: variable 'domain' set but not used [-Wunused-but-set-variable] u32 rem_bytes, num_props, codecs = 0, domain = 0; ^~~~~~ drivers/media/platform/qcom/venus/hfi_msgs.c:465:28: warning: variable 'codecs' set but not used [-Wunused-but-set-variable] u32 rem_bytes, num_props, codecs = 0, domain = 0; The warning is avoided by deleting the variables declaration. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_msgs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/qcom/venus/hfi_msgs.c b/drivers/media/platform/qcom/venus/hfi_msgs.c index 88898118f6af..f8841713e417 100644 --- a/drivers/media/platform/qcom/venus/hfi_msgs.c +++ b/drivers/media/platform/qcom/venus/hfi_msgs.c @@ -462,7 +462,7 @@ static u32 init_done_read_prop(struct venus_core *core, struct venus_inst *inst, struct hfi_msg_session_init_done_pkt *pkt) { struct device *dev = core->dev; - u32 rem_bytes, num_props, codecs = 0, domain = 0; + u32 rem_bytes, num_props; u32 ptype, next_offset = 0; u32 err; u8 *data; @@ -490,8 +490,6 @@ static u32 init_done_read_prop(struct venus_core *core, struct venus_inst *inst, (struct hfi_codec_mask_supported *) (data + next_offset); - codecs = masks->codecs; - domain = masks->video_domains; next_offset += sizeof(*masks); num_props--; break;