Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp716512imn; Tue, 26 Jul 2022 07:30:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSshL+4utKnCeswj2dRKeXD94yC24YL3HKdvoY/1LM1bMuVZU0CfQ7NEK+FmwyY5/bA1O6 X-Received: by 2002:a17:90a:e290:b0:1f2:190b:32b7 with SMTP id d16-20020a17090ae29000b001f2190b32b7mr37483181pjz.240.1658845852491; Tue, 26 Jul 2022 07:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658845852; cv=none; d=google.com; s=arc-20160816; b=X8CUVuN9Mz2/ez3qAp49DfB6SDqyrLm10B5P4A/qsv6kAtWwqBHCIdFBNgFew4fV9X lb+z8EjDuWUpXUBJ+5z76SOPVTZfz55FGts6/bgZnWC1INVVpKf5CEKmr/WSPCmSnZcy 5E0jdJar7I3+7poFaAlIZroH44q0RPOgPvgig0muijqont/1Z1jdtZVgP20Ou8aNIgud eg+SMrSl54+H2tDPNEgGLBHMeXqCGUlvmR2MoDjqzdhBbkw+PZ8M50G7hPxtCFCPNtml Rfdk3bxkYrbcOgSAoy+mRKOQfsUgfHWp/mLgojd158l2zPFkWIw4yBRpClvlmhx9tn+n agRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kmoRPsvsm8/UPlpLddpkV5iEJSN+p+fT8s/uaK/xzVM=; b=w+M3j6+T7tYPYuHsgekduuvJ2j3Isn151YS+evqvauLcXQdk0qFqX9wg+IModE2ePZ 6X3yKf1ai9z2meCCzgU3kT7XK4L8TwUUNwdhlD8GxZ+a3efDLc3fOiWkDtnwaYWWr+G0 6a2eio7GC4wRyEFoyQQUf3Dx1P5/9TTseL2CDg2rC3TcfzShQJtrlHdWKBNXg/8a+JLe ZO0Dc9ZEUaKvr0KcVh1PmL/+ldqCFt5UoyKYWTtC711DGzEZlC8Xev+/HUpIg/2g/sLv 75tuiwqvZpO1IBOm91LdTTUfz9llV2+/87kuHOlB5Cht7h/Rrltq6p7kjuzCyyv9Hutx 6OBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kpsD3BJV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i132-20020a639d8a000000b0040c9e0a1ef5si17777761pgd.516.2022.07.26.07.30.36; Tue, 26 Jul 2022 07:30:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kpsD3BJV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239120AbiGZOW6 (ORCPT + 99 others); Tue, 26 Jul 2022 10:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234137AbiGZOWy (ORCPT ); Tue, 26 Jul 2022 10:22:54 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DB561D32D; Tue, 26 Jul 2022 07:22:53 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5C58310000A; Tue, 26 Jul 2022 14:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1658845372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kmoRPsvsm8/UPlpLddpkV5iEJSN+p+fT8s/uaK/xzVM=; b=kpsD3BJVPq0forflOECwiASHDS+dUHl45KSWX/FSmavM0AJBcnnOYQ1S6pQnV3iw0ulHwS e79IuE8LaSAml2eD8DGR4l7BUTndzWkvgszyjJcS6A8YPJuNZXy/0H4bgvW6mABel4+kLf 9lSlZC9ZMsNWnp6Oz07XcygRWx91+cWHlkXCWGbT4rkBzl7Bc4x5LqUTR/U+7iT1MKZZXz fTD3mgPHjrlITLFfouTC7cotwjQKj0hYlTC7GraRMui/B2opQ0QDvJi3mp13ZwFJ49bpHS HiHExpNuWKrRPp744tozPKbFuNDZLQ/GrBB7fDQ6I3MSTHQtpvVrhvBJqvz+eA== Date: Tue, 26 Jul 2022 16:22:50 +0200 From: Alexandre Belloni To: lewis.hanly@microchip.com, conor.dooley@microchip.com, trix@redhat.com, daire.mcnamara@microchip.com, a.zummo@towertech.it Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH] rtc: remove 'pending' variable from mpfs_rtc_wakeup_irq_handler() Message-ID: <165884535076.3156642.16325816554140473959.b4-ty@bootlin.com> References: <20220627205943.2075043-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220627205943.2075043-1-trix@redhat.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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, 27 Jun 2022 16:59:43 -0400, Tom Rix wrote: > cppcheck reports > [drivers/rtc/rtc-mpfs.c:219]: (style) Variable 'pending' is assigned a value that is never used. > > The fetched CONTROL_REG stored in pending is unused and partially > duplicates the functionality of the later call to mpfs_rtc_clear(). This looks > like leftover development code, so remove pending. > > [...] Applied, thanks! [1/1] rtc: remove 'pending' variable from mpfs_rtc_wakeup_irq_handler() commit: 3fa0cb37bda9d45d3c6f07e67051e7118d3ffe63 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com