Received: by 10.223.164.202 with SMTP id h10csp1024143wrb; Fri, 17 Nov 2017 12:34:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMaiQhw5rHVwYZjcXqvIOgaQBDHZLE3JQHDnUOLlbN0Heto4dVovCQSXTE3OPnqesHjBl623 X-Received: by 10.84.132.40 with SMTP id 37mr6512142ple.246.1510950846990; Fri, 17 Nov 2017 12:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510950846; cv=none; d=google.com; s=arc-20160816; b=UTs2rLyATWPborZuBrtqA9XWsHmZlSWqpHUw+J49RZ1LAq95M76iCWUOLt46aycPmp L+xzJI2y8Aw6dqhwGooO1UOvqXkW2nYRODuUmekWmthagxKz+TYVq4YGFA6GBvkDNdiu jMoCFD35ZttWIFTEpQuJlFBs1cKhUXFcydLcW9DTg2aFMRvNn3s4VNvSApJHhROjWLfQ aetykErXkzu+0KxWuagDnxYwo9gGY/S2jmiCUbhjvioC8e3NcKFuWgNDXY3oxV4fKrdf AVTJ63ZECki26/doGJvwc8KatNY8xNG2/b1XYWMUZbmcrrdykK9PpfUd2sdhQODOTqXm mS0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=vXf4rsY7s8AURmgzFFnvZa1Dr8JIgWSSWVS0nuwkHR8=; b=JZpBZGJlqBbFE5TIOrcgCCiNnN5dLMld7U3Eaz1lrD3N6T1kVn2S5rQQknQTAviKdN 41wuQihHpBkjtQfhfJ5GIz3g1Bg9Xg4YlNW6zTqzIpJJDUU3JWR3p29MIKdqoXIUOX8C JOJIrfo1+bsZhuUBx9tjlXP7s02XXhGnMA23Xx6mLaEibXZcQ/pgguTGVycaBYnJZlMV P3c9FgexLsey0TOijfEDr7ZhNTNyRnudlpkauGz42DxavlCVkCmiqREjQDj1MZ3AEKM0 KF3S1q3+J0E1wbJh9s1MnkGDJAYOGwhWhj+GtvdCqZ78n6ukaTNN1en6oyoB0Tzw32vC Yk+g== 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 d25si3345118plj.822.2017.11.17.12.33.54; Fri, 17 Nov 2017 12:34:06 -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 S934121AbdKQOWH (ORCPT + 93 others); Fri, 17 Nov 2017 09:22:07 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35796 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933834AbdKQOV7 (ORCPT ); Fri, 17 Nov 2017 09:21:59 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9E01DA67; Fri, 17 Nov 2017 14:21:58 +0000 (UTC) Date: Fri, 17 Nov 2017 15:22:03 +0100 From: Greg Kroah-Hartman To: Wim Van Sebroeck , Guenter Roeck Cc: linux-kernel@vger.kernel.org, Philippe Ombredanne , linux-watchdog@vger.kernel.org Subject: [PATCH] watchdog: pcwd_usb: remove unneeded DRIVER_LICENSE #define Message-ID: <20171117142203.GG17880@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to #define the license of the driver, just put it in the MODULE_LICENSE() line directly as a text string. This allows tools that check that the module license matches the source code license to work properly, as there is no need to unwind the unneeded dereference, especially when it is defined just a few lines above from where it is used. Cc: Wim Van Sebroeck Cc: Guenter Roeck Reported-by: Philippe Ombredanne Signed-off-by: Greg Kroah-Hartman --- drivers/watchdog/pcwd_usb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/watchdog/pcwd_usb.c b/drivers/watchdog/pcwd_usb.c index b9e376c8e2e3..07a97708cb3a 100644 --- a/drivers/watchdog/pcwd_usb.c +++ b/drivers/watchdog/pcwd_usb.c @@ -49,12 +49,11 @@ #define DRIVER_VERSION "1.02" #define DRIVER_AUTHOR "Wim Van Sebroeck " #define DRIVER_DESC "Berkshire USB-PC Watchdog driver" -#define DRIVER_LICENSE "GPL" #define DRIVER_NAME "pcwd_usb" MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("GPL"); #define WATCHDOG_HEARTBEAT 0 /* default heartbeat = delay-time from dip-switches */ -- 2.15.0 From 1584342488995390214@xxx Fri Nov 17 19:25:40 +0000 2017 X-GM-THRID: 1584342152804577130 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread