Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2193618pxb; Tue, 12 Oct 2021 01:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV2Bc1Pf4t7Fy341G3fLfgXD6x8VAjJFSTZD6HqP67jKx9zuIpeFf2w5fgdjnrD0c5LrXs X-Received: by 2002:a05:6402:5215:: with SMTP id s21mr43699456edd.113.1634025991207; Tue, 12 Oct 2021 01:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634025991; cv=none; d=google.com; s=arc-20160816; b=h8CUDn3n9RpXYP7d95BzPsoj3XcMzNXcxc3unHyTWit12T/8l2yQhKR1NQztG+hfsQ YzGuT35TrHKUF6OA1issEbyPc3YEMMwezNHdn6TBVMuK7U6/EJex8rEXKwBX5uwXkV0H HfdegL51fQdLpmYEAV1tC5kyBwRY7wsi/FodWOM6USaxN/W7oTMgLV7sO8SWYll9gd9/ LPmrSI4lfXhPXipgSRvI84dfVza/ppuDUfbrj4Kj4XlXB+DX7oDb22TW5r2JDeBal6qy +ovnEubohO7lSj6g3ldnvTw8wPqazqdHV1koYYl5rSQDjoxoeUC9XPm9gZJtoW+VWbzL bp0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JHyKbjTift426wz+CkjwB4QsgP3nBOzBlm+zKKFBLrQ=; b=Ochia8RK1aQ0pwSO/tVLzkRQGKgRrIRpnI7QHZQNFQNX2lCBdIoQexB317QztRtxDI MQmfjURenTXOFWkrkr/1R4vvaNBJ6OOqCqVVK17s0oEwBCzO7AekQmmY1KEOV0nzuNLM ztOcwPQfqZBDwitB5+KfCBN6xkQxihJ9x+05ujnWy+hgvkWt0yCYH8cElcSdkPUYRws9 3wmnaN1uu7EF5K7IS/xe+ztqtU6nXJdjTtkLQvASykG0amr5EnveqNfF9UXrCl8QuhLJ tGBzDI9CAcFDG4PQ+l6eZYbs2rnC5AX7K/ZxCxu5XQU2ft8vXp4FxK8QhczswfVOjloS viKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=nTdGrWM1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yk6si8304011ejb.522.2021.10.12.01.06.07; Tue, 12 Oct 2021 01:06:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=nTdGrWM1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234867AbhJLIGB (ORCPT + 99 others); Tue, 12 Oct 2021 04:06:01 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:52624 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234829AbhJLIEC (ORCPT ); Tue, 12 Oct 2021 04:04:02 -0400 Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 6494C3F338 for ; Tue, 12 Oct 2021 08:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634025685; bh=JHyKbjTift426wz+CkjwB4QsgP3nBOzBlm+zKKFBLrQ=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=nTdGrWM1g/ojwN4hcsHoB/xz8suphpUtgdoLWpb6ACX89k1iw/hNOZECaaVsscP6F 4ihu31EiTHH3eHw46k5cg8KdjOUxDkCBTYeHfcnmPJnX7WRGxQlbBAMo6pyrTGvRi7 C6nlNw8YRi2S54sCz7gzALyYxuxwKFb86si371qGUVcoLjYGrq+2mRRJvexAG0/Rdh 6ixPx/Bk0CmLHyJGf7Fcxmm823kYFO0BH7xO9ftOXMLKl8jD8v4a0axo6S7pgf4i1F eG37edxwOtafFL+mc2N1TSCKBrczUfgk35Anbm/KpjNAjBXtMc3yNyjW1gkgjZOk6E zVyp/W4yzbH6Q== Received: by mail-lf1-f72.google.com with SMTP id br42-20020a056512402a00b003fd94a74905so3019098lfb.7 for ; Tue, 12 Oct 2021 01:01:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JHyKbjTift426wz+CkjwB4QsgP3nBOzBlm+zKKFBLrQ=; b=aNig0lgyJalDPA8hZfzyWpTbKWvLhbtKQw6N079Rnr8ZxsWE0Q6praoylR3ycw49hj XCYoQt+js31HRBYruavoHXKf+XtSLaYOegrbenmDeW7adQgmmIfN/MMnsdkdTrGk2Q65 +AdeQ5dd36710+ielf+UkAVMJi2nMUVnt51lAOqvLk7Fq4vTyeCd8y0sVPFy7Q3LodVq vkJY3lGBwxF67aQQ4twm0Gbf4+4wNwq4a9EjqGCGOZr9BrzUol7mmm2s/B/+pb8knX0f lVQ1ql1TICRA25Yec2FkOn5RLXJrj6/ZdvOW+h0nSgF/FY3f0dlQiAHjAZXu3qUm5N4w lSYg== X-Gm-Message-State: AOAM533h15SZIIWlP10jyl+iZtD0lObRyk2UrGsAPo96Usp2+BusZCYF /wWbHb3Rnyz0GzuMhTexge7WJreUTf40QdG4AjeN7NbgQDfUVmOwiZV+vfVchHn0ayLUp82KmaV tDCo55ouGYrk69DnL4oDy8RnOanvGxxlJD8NpOII5yw== X-Received: by 2002:a05:6512:12d3:: with SMTP id p19mr33215023lfg.280.1634025684650; Tue, 12 Oct 2021 01:01:24 -0700 (PDT) X-Received: by 2002:a05:6512:12d3:: with SMTP id p19mr33214997lfg.280.1634025684383; Tue, 12 Oct 2021 01:01:24 -0700 (PDT) Received: from [192.168.0.20] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id u27sm956373lfm.275.2021.10.12.01.01.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Oct 2021 01:01:23 -0700 (PDT) Subject: Re: [PATCH 4/8] rtc: max77686: remove useless variable To: Luca Ceresoli , linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Alessandro Zummo , Alexandre Belloni , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Wim Van Sebroeck , Guenter Roeck , devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, Chiwoong Byun , Laxman Dewangan References: <20211011155615.257529-1-luca@lucaceresoli.net> <20211011155615.257529-5-luca@lucaceresoli.net> From: Krzysztof Kozlowski Message-ID: <43b0cc1e-8b65-0322-d8ee-a8e45f1aa8fe@canonical.com> Date: Tue, 12 Oct 2021 10:01:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211011155615.257529-5-luca@lucaceresoli.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/10/2021 17:56, Luca Ceresoli wrote: > rtc_24hr_mode is set to 1 in max77686_rtc_probe()->max77686_rtc_init_reg() > before being read and is never set back to 0 again. As such, it is de facto > a constant. > > Remove the variable and the unreachable code. > > Signed-off-by: Luca Ceresoli > --- > drivers/rtc/rtc-max77686.c | 11 +---------- > 1 file changed, 1 insertion(+), 10 deletions(-) > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof