Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp530917iof; Mon, 6 Jun 2022 08:02:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx32j4XIeVvZ1sJoic5cgCVgMuNrR4cdrYG2qLAICbJyrHED+Ny44ZYjMgFD3HZ7Wcr4s73 X-Received: by 2002:a17:902:7c90:b0:167:8898:f82b with SMTP id y16-20020a1709027c9000b001678898f82bmr2657452pll.171.1654527730537; Mon, 06 Jun 2022 08:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654527730; cv=none; d=google.com; s=arc-20160816; b=uYOwv73I8O+V8ricWW9P8UdVaDpvA70O7RbhyRIqfbnMjfIMTZijSzV91CsnO5ig5X FndqvcycEkvzN2XZmHOuDIOub8EV7Yrq/AOC9lKEUclyt/+u+rqHq6O8kIESyFDACQyz 0L2lkr8ipWBeIXvah+53RkrZxGsxReiDjy+Pr7r7439SKkIfCZEfJ8LCv6CUyWXAYhSc JrW3vUWvGJ+S/HosZ8IpWSk4FPdPyG8CQOLxoAmqRV3UVXHXGT9pkpmFOqBSYvO+EYCm IhV4vT/eA4zReyQ9Y5YPzbVzT4nt0tcpUDSIov42ok9jX4Zh0L8TZM4/9MTj4cZeV/mn sgCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=B8aUdx1gby2GnsvgYKdwcaM9ANoHiNo1YM6uPkZJNlw=; b=PnlXWpbsW9tTzRzTTvEPg+cx057stxgPgGqJvxAXhUo2jcew0W23I5fd3oHnf05U5m Hi5pSLzU7TjKVL2Rt8ng3JjCMdeWRV0bVgD+sZ55tA0ND+0obwb/97pGTfRf9pWtQ1ch QxBCpT5d3VgDsHGpvq88vma00miwkrzLp+OX/qyI8F9NRheLI9llxnVjtYdDOqIn1rRl uyJw9uCgDibpm0hTDOzY6fnnQBOXSPdb4zug5PMhbh6Vu8pab46BEK4t+bn57W5X98wj c9NbIITnKOGBWMvyYqswmldARQA3rU3gI3VDNGGypxQtkVzFM+KFI226bszbjoHQGvDd iP6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id md14-20020a17090b23ce00b001e2f19b2126si19994981pjb.13.2022.06.06.08.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 08:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 29B2B1912E2; Mon, 6 Jun 2022 07:51:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240071AbiFFOvx (ORCPT + 99 others); Mon, 6 Jun 2022 10:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240066AbiFFOvv (ORCPT ); Mon, 6 Jun 2022 10:51:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 578CC18C079 for ; Mon, 6 Jun 2022 07:51:47 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2CADA1480; Mon, 6 Jun 2022 07:51:47 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2BD5F3F73B; Mon, 6 Jun 2022 07:51:46 -0700 (PDT) From: Sudeep Holla To: Cristian Marussi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sudeep Holla , kernel test robot , Dan Carpenter Subject: Re: [PATCH 1/2] firmware: arm_scmi: Remove unused local variables Date: Mon, 6 Jun 2022 15:51:42 +0100 Message-Id: <165452690982.3957918.9251759630196988162.b4-ty@arm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220530115237.277077-1-cristian.marussi@arm.com> References: <20220530115237.277077-1-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 May 2022 12:52:36 +0100, Cristian Marussi wrote: > While using SCMI iterators helpers a few local automatic variables are > defined but then used only as input for sizeof operators. > > cppcheck is fooled to complain about this with: > > drivers/firmware/arm_scmi/sensors.c:341:48: warning: Variable 'msg' is not assigned a value. [unassignedVariable] > struct scmi_msg_sensor_list_update_intervals *msg; > > [...] Applied to sudeep.holla/linux (for-next/scmi), thanks! [1/2] firmware: arm_scmi: Remove unused local variables https://git.kernel.org/sudeep.holla/c/d0c94bef70 -- Regards, Sudeep