From patchwork Thu Jun 15 16:31:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 105671 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp888462qgd; Thu, 15 Jun 2017 09:33:51 -0700 (PDT) X-Received: by 10.84.131.74 with SMTP id 68mr5917740pld.287.1497544431369; Thu, 15 Jun 2017 09:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497544431; cv=none; d=google.com; s=arc-20160816; b=tfI18xMJdC9LBFU7Rccwy1PzVOEWvwNPoPyz4bGDhWEGnEeOwRs4xqqpkVxclstwWx UeLUT66sl3RVIVxzzBMsK32TMacBcLgDCEMEdk+7WGmJC/XpZo+MM8KN+ZsBQ6jipZKN LbOfiGx6NwwMUNy4XZlzJl9bjqhFTRDjz8Zas3FOJxt/ajsHwRIzphQyYqxvWEQBmxSQ R01potc3JCf6O+PhQA6rHZdUzcmsts8iFo6gbubiat79eAKoEqlR/aMEGnjef1CRrwer KIHUhHYQBux4CRBtsLAAmfNhD7jhBgNpnrneWlHVqL8WtxbSub3xu2RDxZOzHJKCjh07 Hy2Q== 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=E7MCo3eDdxLrovktBzarxBxkX5MMJCR3fnZ3Y71nabk=; b=LSd4Q5hZRGSUC79EyhLuPsqF6PZ4AZ7TCioA4v3TuICD4DdPaWxKQbXmoCGBIikGM8 /5IkJPdZ5AY88S8Iz6rJwcpLUZLXBsG4QNarFLTotRqXoEq+I9v5D8gntHEqbD15ZQ2F PupsrQxw/09ana2ElZOZGcgdMuJzpslFgrR3tg8ZyzOIwZfghx+vQib5f2rirDpPXWo4 maMfEbiuOx9cadS2UwRRu/TRS/fnLvCagV9b+Ny5EUyQ8GLYQwZUf2LGtycsHXvXbUC+ yjkWTbf6ZiiTN+KZCzDKuXEO+2FpteidK0hi27361FjcsPoDVt6DR96BwO1e/Jx7j3MC 5H5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=T6KQC7Cu; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 a33si352296pld.507.2017.06.15.09.33.51; Thu, 15 Jun 2017 09:33:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=T6KQC7Cu; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752748AbdFOQdl (ORCPT + 4 others); Thu, 15 Jun 2017 12:33:41 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:34126 "EHLO mail-wr0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752739AbdFOQdj (ORCPT ); Thu, 15 Jun 2017 12:33:39 -0400 Received: by mail-wr0-f182.google.com with SMTP id 77so25379050wrb.1 for ; Thu, 15 Jun 2017 09:33:39 -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=T6KQC7Cu2eaOokIsUmZICYT95Mh9Miro1k4gu9SmGfPw6dsqH7jSXkkJLwDgK7/Gs1 AY+a7yaksRyOfIxL4v5IoostyV1eMFVPIG6ehuC3z+R6Z/JxJkSZPdjWlSgE5sj+O39L NUJOx8Nr9VT3gHjL5jjxO9eaCzGE/L8NpeOPc= 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=pjI32aEaLHuj7cd6i/V8TsPfwFgZHi6NYQjlzpjwtHdxTe/qrH+MG3CZwsEpkJdebA 2GJs/vdx1NsBl1OEL7tqy77G3h7Bh99OzMfy8fsRubFpBlh4lRuPajW/liC8lUO55uvy Pt36PiG+fiL+Hdhe/IYV5tX5WeO0ttbBMT9g3fc3Qvqgi3BA9pFbLr5kc7iO97Fsg3qK 5eXdozHz+e536KYJsLS/QMlqOhY0ZrXS2xP0t+JpKEJiVIHJJUj5VAVbqs9bVKehDZ/d IQQAMdTEGmvYdRF0gahSNrF+OOjNue0lKIDzJgjeL+W2hsdeua9yEaDYy220ab/mrJII KgaA== X-Gm-Message-State: AKS2vOxBg2kdZfJ80QVSmv38lgY09IJShkHRku/Qztat31zUalg368be ppqBuyxpi3ZL4Q6i X-Received: by 10.223.154.41 with SMTP id z38mr4272952wrb.76.1497544394440; Thu, 15 Jun 2017 09:33:14 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id m73sm541890wmi.25.2017.06.15.09.33.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Jun 2017 09:33:14 -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 v11 14/19] media: venus: hfi_msgs: fix set but not used variables Date: Thu, 15 Jun 2017 19:31:55 +0300 Message-Id: <1497544320-2269-15-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497544320-2269-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497544320-2269-1-git-send-email-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 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;