Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10126816ybi; Thu, 11 Jul 2019 00:01:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSfk/QGwk1AZOWwlrFgTHc1WJn0bpzQCjZMlNRhW56Gyp1ZQyGT09N1QBkAPzfCUoXChJX X-Received: by 2002:a63:5f95:: with SMTP id t143mr2177419pgb.304.1562828518049; Thu, 11 Jul 2019 00:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562828518; cv=none; d=google.com; s=arc-20160816; b=zs2IxhjYG60bWlhssIfJYI7BgX4SbztPAwI38BMkoCGhUuOJv5A1qoef/UExCvG9up 2yWmLRUGM/FWtKNbOzKnUn3FruBOKulvr1Wohw66Ov7AqCTQzKHabzAVammWQ1GKwQ4i JS1JOkpcktpqJXD88+DbEwMCcZNWslDkCn4vLRh3M3EJheBrDpddl1Vl0xj60ydxARI7 BV98tDB2jvj7+gpxJi8yzbbaLGiJ42vE+jz6ImR+BbCk8WPSy2cjlEmPE1n9WgFKkNHq pE+oplWhTjmK3hLTa3e2WSWCmsJbRmVxeX5+7MTJuiEjdUAgEmKgcp5gGeElezCtVk2t XTtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=c2zy6oaUcvXNva8MBsETOtKIUOqI7T6vwPjs6vVQ87w=; b=sX2XLk1r/pVupSudNkdicHks1ln96Te7QyQjLqazpvXDa4QXrSacox8NDj9pxtBC0S +5erw/Hg84myL7X5rXX/qG4I6vSIXO+y3gR/iWr6fFnpMahcpiXfFg4HJBZ3SQjtqw23 K2W5L74nngHA9e8oAv4BFdaxa0vpuOfvYYyf4FbAJWBPEoVDXwwrBuT/Z4usOelQ0mOP HslgQQlfnIdT4uk6p/9vZEUzptJ+x6NuJbyjmjEnTeA0a1s2Dzvx+lOAV3mnTVPMm0dg zP1UMEetF2F2sVOnJYFKI8RyXQgGoZtHKbmeWiw88aVacCelD/frHoEbCc6oIO8SLJ/Q +u8A== 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 d21si4198884pjw.18.2019.07.11.00.01.39; Thu, 11 Jul 2019 00:01:58 -0700 (PDT) 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 S1728128AbfGKHAg (ORCPT + 99 others); Thu, 11 Jul 2019 03:00:36 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2252 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725963AbfGKHAg (ORCPT ); Thu, 11 Jul 2019 03:00:36 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 84EE695F83B628D151AE; Thu, 11 Jul 2019 15:00:31 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Thu, 11 Jul 2019 15:00:21 +0800 From: YueHaibing To: , , , CC: , , , YueHaibing Subject: [PATCH] watchdog: digicolor_wdt: remove unused variable 'ret' Date: Thu, 11 Jul 2019 14:40:19 +0800 Message-ID: <20190711064019.60916-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit cdad26977e3f ("watchdog: digicolor_wdt: drop warning after registering device") left this unused variable, it can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- 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 33cda95..073d378 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) -- 2.7.4