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: 9789157 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C32660384 for ; Thu, 15 Jun 2017 16:33:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EA0C286BB for ; Thu, 15 Jun 2017 16:33:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43BFA286BE; Thu, 15 Jun 2017 16:33:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68D6C286BD for ; Thu, 15 Jun 2017 16:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752748AbdFOQdl (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;