From patchwork Tue Jul 9 20:34:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 11037487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8E9A1395 for ; Tue, 9 Jul 2019 20:34:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA6D0288D0 for ; Tue, 9 Jul 2019 20:34:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BDEE1288D9; Tue, 9 Jul 2019 20:34:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 763ED288D9 for ; Tue, 9 Jul 2019 20:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729012AbfGIUe1 (ORCPT ); Tue, 9 Jul 2019 16:34:27 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39840 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbfGIUe1 (ORCPT ); Tue, 9 Jul 2019 16:34:27 -0400 Received: by mail-wm1-f68.google.com with SMTP id z23so100444wma.4; Tue, 09 Jul 2019 13:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JW4pZp5yWurq7Q7UhzYQACCrJGsw4TFiXM6qLjGCVg0=; b=YhX+81CrwKeI4FkvJGZ7vRLxnT5K52Y7j9LDT8/gNvuZhntHatNVDvWJhoHhxnL6rH ozXRa67t/azRgYw5Coifbnix/RYsEl/MupQWiuC/SksvX2hsvJ50njJChymcmpcOIyoL hclNNROQ/0OrZf1eqz1Jb3R6uClPsL+mozaRa9xjMj52rIyPJymTz0hpMPKjQSaxFtUS fBP9XyouGZQ3QwQJesUz1+Hec8UP/AWfCZY8ZLU+Xqmr4b65CIfEoryWLl+G3plSjbmT XxZr8UadZe1N4+T/r/HNnKJme2DwhPln8pPWyHA/VVnmIKW+CFYVISV/Jt/0qZKqDRNm igqw== 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=JW4pZp5yWurq7Q7UhzYQACCrJGsw4TFiXM6qLjGCVg0=; b=V52kxOGLBrSVaz7awIM2uq2oBG/wkyR5FXFsF3E9aKiZpqmr/cP4WPxdgEkIkKwSWq yah3NLmPgdWzgpkUGpsTZg+Jawz57AgDztHayOOHGYlCFSmFF/pleNGiHLNdUtXjPgcG Ig3Ee3fZEv9gPv5v5W1LlwOsbOpObC7IhpITJxV/WJMpNAanZ/sejUpyYcv6KqNEBGZN ZH/tFR6fJH/YkfGmNjp9+K2+ompPl0Yh39fOilFgUodgFn6I2FvV0hV4a7ZfVIGD4u4Z PhZx/9PNTTOHidE7tB4RvSoiglpgNh8+avdBCWpqCu9ODAGk7DCOLMe+LiOvYYuPq1no 5yeQ== X-Gm-Message-State: APjAAAWMJI6wW64ihIahiHd86Jcv0vAhDznDXiZTxyPzXRaYdsL262mf wuzkRhK4w7DmpbRKlVp7nXsSqCSq1DMVsg== X-Google-Smtp-Source: APXvYqycXYrc4+rUtZW7EGPXG00XXUE7raSCtwgSfAnQ782kPpj5ut4EnHEoACqwEJDyPJL3SHoZqQ== X-Received: by 2002:a1c:228b:: with SMTP id i133mr1348861wmi.140.1562704464486; Tue, 09 Jul 2019 13:34:24 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id t24sm60492wmj.14.2019.07.09.13.34.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 13:34:23 -0700 (PDT) From: Nathan Chancellor To: Wim Van Sebroeck , Guenter Roeck Cc: Wolfram Sang , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor , "kernelci . org bot" Subject: [PATCH] watchdog: digicolor_wdt: Remove unused variable in dc_wdt_probe Date: Tue, 9 Jul 2019 13:34:09 -0700 Message-Id: <20190709203409.117123-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP clang warns: drivers/watchdog/digicolor_wdt.c:121:6: warning: unused variable 'ret' [-Wunused-variable] int ret; ^ 1 warning generated. It's unused now, remove it. Fixes: cdad26977e3f ("watchdog: digicolor_wdt: drop warning after registering device") Link: https://github.com/ClangBuiltLinux/linux/issues/591 Reported-by: kernelci.org bot Signed-off-by: Nathan Chancellor Reviewed-by: Guenter Roeck Reviewed-by: Wolfram Sang --- drivers/watchdog/digicolor_wdt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/watchdog/digicolor_wdt.c b/drivers/watchdog/digicolor_wdt.c index 33cda95bd238..073d37867f47 100644 --- a/drivers/watchdog/digicolor_wdt.c +++ b/drivers/watchdog/digicolor_wdt.c @@ -118,7 +118,6 @@ static int dc_wdt_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct dc_wdt *wdt; - int ret; wdt = devm_kzalloc(dev, sizeof(struct dc_wdt), GFP_KERNEL); if (!wdt)