From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753530AbbHVT3t (ORCPT ); Sat, 22 Aug 2015 15:29:49 -0400 Received: from mail.windriver.com ([147.11.1.11]:49287 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753403AbbHVT3s (ORCPT ); Sat, 22 Aug 2015 15:29:48 -0400 From: Paul Gortmaker To: CC: Paul Gortmaker , Alessandro Zummo , Alexandre Belloni , , Greg Kroah-Hartman Subject: [PATCH -next] rtc: drop unused ret variable orphaned by misc_deregister becoming void Date: Sat, 22 Aug 2015 15:26:31 -0400 Message-ID: <1440271591-5640-1-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit f368ed6088ae9c1fbe1c897bb5f215ce5e63fa1e ("char: make misc_deregister a void function") this ret variable became unused which now generates a compile warning. Get rid of it. Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: rtc-linux@googlegroups.com Cc: Greg Kroah-Hartman Signed-off-by: Paul Gortmaker --- 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 7067232ba507..742ac67eb702 100644 --- a/drivers/rtc/rtc-ds1374.c +++ b/drivers/rtc/rtc-ds1374.c @@ -663,9 +663,8 @@ static int ds1374_probe(struct i2c_client *client, static int ds1374_remove(struct i2c_client *client) { struct ds1374 *ds1374 = i2c_get_clientdata(client); -#ifdef CONFIG_RTC_DRV_DS1374_WDT - int res; +#ifdef CONFIG_RTC_DRV_DS1374_WDT misc_deregister(&ds1374_miscdev); ds1374_miscdev.parent = NULL; unregister_reboot_notifier(&ds1374_wdt_notifier); -- 2.5.0