From patchwork Mon Aug 9 12:31:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 12426351 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C806C4338F for ; Mon, 9 Aug 2021 12:33:48 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 534BC60FE3 for ; Mon, 9 Aug 2021 12:33:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 534BC60FE3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 660DD1683; Mon, 9 Aug 2021 14:32:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 660DD1683 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1628512425; bh=HRJm4jkuQ4qrVTShEaavJ8byL8ltgb09xvnONldogxI=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=iIP1J8dBYlNkylX2whmtSHt6ZCq6b8O5cAuSYGP2pLNCKvHbGHawqaM3ikB++2Fuf 7aqSWEiy0YHvur708VJwvCqKDFpsT2CL3fmJ6LVSu6G0RCbJye1SlHyfTSlZ+oAnn8 PJyJpEF4ZL40cFeuQd+3vGuVGVsEhn+zd4dsA5Nc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E551AF8032D; Mon, 9 Aug 2021 14:32:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C04E2F802D2; Mon, 9 Aug 2021 14:32:02 +0200 (CEST) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3D01CF802D2 for ; Mon, 9 Aug 2021 14:31:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3D01CF802D2 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="z6RKwVaj" Received: by mail-wr1-x432.google.com with SMTP id c9so21161789wri.8 for ; Mon, 09 Aug 2021 05:31:53 -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:mime-version :content-transfer-encoding; bh=XU7I3Tp+UVeKAwFkjnYj14P3sdinYDnARmKFl5zq2kU=; b=z6RKwVajWc7JC6OWjA7B+naXi3aDImOWCrFdqJByNnAZeBjysvOUavgfHaV6PemVME tIzKiqJXSj8JlUEPETlmit+1/kTb31mU/2PYzLUqZkIeRLDxxAsxAzkSmF42eRLS7X1C Cs/7GRMle9wsBIVzP/4uxOtSsdmSITBFTeo+V9JgUsGeH3vjXLOhUW0DnlfybnYHxXYn 0VjSCoQuzEr4HDWIjS+JGoAdu2TAPbQLNzBgEUVtmJ8KoVO02CNt5SgR+GAOzgTrBR6w Zqs8bxqg9zgYOhEzwUwtqENGYfubYBcTsNH9unYPvULDI3P31z2NaWxjWljqTdkLqsbG YIZA== 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:mime-version :content-transfer-encoding; bh=XU7I3Tp+UVeKAwFkjnYj14P3sdinYDnARmKFl5zq2kU=; b=EFo7kkbKXwmuT5K0yoj2tQu9U9+11vhJQ4E+WeYfp8AhBWw0pB7heisKTq7CVyqyhS 2bIchJNrbevgs1mL0IOjcjOc/0nPYa38qkRNWtCNy4Kc4WxGrf9FseIL84lMPe+US98f xrgUdgfzQR6RHB88B2VcmFdk3QZFQ8FVgV6Mk0louJBW3fQ+R04qTcUu4pnEN5WsqydN ox83x+gBX+VNtBbuXhf1LnNPtvP9y9jmz3VUMLr6ITmnhveq/POhl9035Ml+tVZ6pUAf kTqY5AdI5r1bnTfFJLbQGsrsk84yuWT+UDG05g92J02DLNvR7oxjINDgs9BVoYf7Mi75 zIWQ== X-Gm-Message-State: AOAM530qfG0yYRyYu9w0+YSgSkw2YP1Hg1qJ9HR01i2zbqr3fZE0XDV4 UCK8HRX+y86zMcUQi1Nbkp1wsQ== X-Google-Smtp-Source: ABdhPJxi9GkuVRTX5sl68pMd+yYPD0zitdCq2NY11P4JCCk8RpcF8fyQM5fPtPa7Lug35Ja20soQVg== X-Received: by 2002:a05:6000:18a5:: with SMTP id b5mr24439767wri.184.1628512311881; Mon, 09 Aug 2021 05:31:51 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id g12sm19369193wri.49.2021.08.09.05.31.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 05:31:51 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Subject: [PATCH 0/2] ASoC: qdsp6: cppcheck warnings Date: Mon, 9 Aug 2021 13:31:35 +0100 Message-Id: <20210809123137.14456-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, bgoswami@codeaurora.org, tiwai@suse.de, lgirdwood@gmail.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" cppcheck throws below two warnings in qdsp6 code due to unnecessary initialization of variables q6asm.c:1631: (style) Variable 'port' is reassigned a value before the old one has been used. q6adm.c:475]: (style) Variable 'matrix_map' is reassigned a value before the old one has been used. These series fixes it by removing those unnecessary initializations Srinivas Kandagatla (2): ASoC: qdsp6: q6asm: fix cppcheck warnings for unnecessary initialization ASoC: qdsp6: q6adm: fix cppcheck warnings for unnecessary initialization sound/soc/qcom/qdsp6/q6adm.c | 2 +- sound/soc/qcom/qdsp6/q6asm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)