Received: by 10.223.164.202 with SMTP id h10csp1110017wrb; Fri, 17 Nov 2017 14:10:01 -0800 (PST) X-Google-Smtp-Source: AGs4zMbIjUGbd+3VxNV0alG/aEc4Fg6HupmJw8vqJogdV/wlogjlXuGkUgsUuXHorpWY7+vR0NZy X-Received: by 10.99.173.74 with SMTP id y10mr6326586pgo.107.1510956601036; Fri, 17 Nov 2017 14:10:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510956600; cv=none; d=google.com; s=arc-20160816; b=C8OWyVswhfN9u0ittx5bQcMnTrFrKFMyrfYXFu4OEKS09wGVA1DltMLWf7pe9XWSgl hANeVFV0a/GtAlw/KmZ5/Vr2N0921LCZ4J9SIQDTyLIml1HcCIDt7OS3RzRXCr+cFuQ8 rRVDBd7+eCeV8PqtKHHmulUEWzKx/dh+kfx100Yw0+MDMbpTzVsHgyl/56fd1xx96EdK kQZ7Jrx+zIGi0lGiVG4JMB9hDBDdkl1k0U+RXx4xbOhkukVTtPX6gZVLbHuh5pacaGBc 23OY3t1yggtlIoYUMIIlhC58oHLL1EUB8wZfww5qCUccsa8PuXFRd9hA15NMaAurBbVZ 70dw== 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=NVBvfPSB+2OK3ACsXWBGhh+NoJYv0s1hUonsaXPI3fo=; b=yNoAsasHTJyfvYQLjolppcysVo4L7/l0G6i3aH4SXQgshBT6LWJ1Yy3yKQqZftLuWd xQqYyEOLc4x7LsKVOHDrlNjDmobv6DD7gAHmvKw7pU7xixMWChbzSHhNFLrTZSlT+cDB jBQphkNpQc/gVJXeiAZrC5Q0HP5vz9Gcyu1ogGXD2m2mKj8qaVrWorwJ/fFK3CP2aALO TbpgyyBAMDDgJJWSeahN4jGWD0/f5tVjjaT+iPBt+4Mp9EFtppXjGz7G6fuRdXaOIM7G 1NPX9+hnjNxEEfguNgI5OeDKCp/Xcsrd27tGzTtkPHwUYiF4gaL0MNxhbilLjBxUsGsz UE+A== 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 y6si3284114pgp.587.2017.11.17.14.09.47; Fri, 17 Nov 2017 14:10:00 -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 S933696AbdKQOS3 (ORCPT + 93 others); Fri, 17 Nov 2017 09:18:29 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35712 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756904AbdKQOSW (ORCPT ); Fri, 17 Nov 2017 09:18:22 -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 82A009AF; Fri, 17 Nov 2017 14:18:21 +0000 (UTC) Date: Fri, 17 Nov 2017 15:18:26 +0100 From: Greg Kroah-Hartman To: Hans Verkuil , Mauro Carvalho Chehab Cc: Johan Hovold , Davidlohr Bueso , Sakari Ailus , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Philippe Ombredanne Subject: [PATCH] media: usbvision: remove unneeded DRIVER_LICENSE #define Message-ID: <20171117141826.GC17880@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. Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: Johan Hovold Cc: Davidlohr Bueso Cc: Sakari Ailus Reported-by: Philippe Ombredanne Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/usbvision/usbvision-video.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c index 960272d3c924..0f5954a1fea2 100644 --- a/drivers/media/usb/usbvision/usbvision-video.c +++ b/drivers/media/usb/usbvision/usbvision-video.c @@ -72,7 +72,6 @@ #define DRIVER_NAME "usbvision" #define DRIVER_ALIAS "USBVision" #define DRIVER_DESC "USBVision USB Video Device Driver for Linux" -#define DRIVER_LICENSE "GPL" #define USBVISION_VERSION_STRING "0.9.11" #define ENABLE_HEXDUMP 0 /* Enable if you need it */ @@ -141,7 +140,7 @@ MODULE_PARM_DESC(radio_nr, "Set radio device number (/dev/radioX). Default: -1 /* Misc stuff */ MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("GPL"); MODULE_VERSION(USBVISION_VERSION_STRING); MODULE_ALIAS(DRIVER_ALIAS); -- 2.15.0 From 1584347474566749416@xxx Fri Nov 17 20:44:54 +0000 2017 X-GM-THRID: 1584342085865135600 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread