Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4820462pja; Fri, 22 Nov 2019 02:24:21 -0800 (PST) X-Google-Smtp-Source: APXvYqytJd/xwrQHCz/Rtg9exw2iRf/tCrk22Fd1HNa9Lt1keFd9WLA24oh52OIBjWFYIH/X9XXi X-Received: by 2002:a17:906:f14a:: with SMTP id gw10mr21693781ejb.29.1574418261126; Fri, 22 Nov 2019 02:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574418261; cv=none; d=google.com; s=arc-20160816; b=PWfWPQyu62e6/aBcj0GHmIYZfey3GdhLkBnum2CqpJrEx9BTgFBCLoGNEcYGv/1ll9 XMJI7Q7aeh3lVIOxuStWUFPdnJOtWcn8aLXiyDpW5z/EzyH37vrg+HiJlWP3kQFOxKuq tC8k2Lr0ooBokseJz3eVMXu9MiQ/vo1J2IBSlhSrJlR92amewboQmClKtCR5+c6rY5mP lXUnwmRAibMZjtilUunwGyEIByolvc7yQNOWay1vc0w0oCoU4Sf1Du/ceT+EGS4HMG9M Zoc00/9qDXsGyms5Rq3l9rclZt7w4/+ctme/+1SMTdIJJ2loNoo8VZR4i5qdO+S0P/Z1 kXQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BBRIBBNrB55zKQGD6i43kMFGYEeV7J2ntCNeT4jwoDk=; b=vxRG4KkvtuKLVdOXAO44D1p1jKPFcffrNtJeOfBYCk72gfmN3ZnarY1zD+O16anu9a WedkxOofCRHjZvPiUdCf57JhZcgy1Jb/Ziefdu/fi+d8U5dWtKC3WD3aEVYo1C/2OnMT F7x+ahAy5RD8YNTNJ1hiDUlAngz3Au9jE8Dr6rqWENlBBLSwukchMr68l32Dw97/SOV1 Zxnh17Siwj7airGfvdD/EX0v3XnzjasGEeTkkHst96yGRz2zxuzIc30pXv+52iK/CzNX VlpeNg3EwuKb7zOTKfqcrd6G6msz6SJrlrqTRiEFt80WL7hcKRfmZprr7eB65AYa7llu CPtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si4255576edy.83.2019.11.22.02.23.56; Fri, 22 Nov 2019 02:24:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727090AbfKVKWy (ORCPT + 99 others); Fri, 22 Nov 2019 05:22:54 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:60345 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbfKVKWx (ORCPT ); Fri, 22 Nov 2019 05:22:53 -0500 X-Originating-IP: 92.184.97.94 Received: from localhost (unknown [92.184.97.94]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id CDBBA1BF20F; Fri, 22 Nov 2019 10:22:50 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 2/8] rtc: ds1374: remove unused variable Date: Fri, 22 Nov 2019 11:22:06 +0100 Message-Id: <20191122102212.400158-3-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191122102212.400158-1-alexandre.belloni@bootlin.com> References: <20191122102212.400158-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix warning: drivers/rtc/rtc-ds1374.c: In function ‘ds1374_wdt_disable’: drivers/rtc/rtc-ds1374.c:442:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1374.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c index 367497914c10..96eba7606523 100644 --- a/drivers/rtc/rtc-ds1374.c +++ b/drivers/rtc/rtc-ds1374.c @@ -439,14 +439,13 @@ static void ds1374_wdt_ping(void) static void ds1374_wdt_disable(void) { - int ret = -ENOIOCTLCMD; int cr; cr = i2c_smbus_read_byte_data(save_client, DS1374_REG_CR); /* Disable watchdog timer */ cr &= ~DS1374_REG_CR_WACE; - ret = i2c_smbus_write_byte_data(save_client, DS1374_REG_CR, cr); + i2c_smbus_write_byte_data(save_client, DS1374_REG_CR, cr); } /* -- 2.23.0