linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HID: usbhid: remove unneeded initialization of quirks_param[]
@ 2014-06-05 19:20 Mathias Krause
  2014-06-10 12:33 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Mathias Krause @ 2014-06-05 19:20 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-usb, linux-input, Mathias Krause

The quirks_param array is located in the BSS, no need to explicitly
initialize it with NULL.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
---
 drivers/hid/usbhid/hid-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 7b88f4cb99..37d2a95c5a 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -58,7 +58,7 @@ module_param_named(ignoreled, ignoreled, uint, 0644);
 MODULE_PARM_DESC(ignoreled, "Autosuspend with active leds");
 
 /* Quirks specified at module load time */
-static char *quirks_param[MAX_USBHID_BOOT_QUIRKS] = { [ 0 ... (MAX_USBHID_BOOT_QUIRKS - 1) ] = NULL };
+static char *quirks_param[MAX_USBHID_BOOT_QUIRKS];
 module_param_array_named(quirks, quirks_param, charp, NULL, 0444);
 MODULE_PARM_DESC(quirks, "Add/modify USB HID quirks by specifying "
 		" quirks=vendorID:productID:quirks"
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] HID: usbhid: remove unneeded initialization of quirks_param[]
  2014-06-05 19:20 [PATCH] HID: usbhid: remove unneeded initialization of quirks_param[] Mathias Krause
@ 2014-06-10 12:33 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2014-06-10 12:33 UTC (permalink / raw)
  To: Mathias Krause; +Cc: linux-usb, linux-input

On Thu, 5 Jun 2014, Mathias Krause wrote:

> The quirks_param array is located in the BSS, no need to explicitly
> initialize it with NULL.
> 
> Signed-off-by: Mathias Krause <minipli@googlemail.com>
> ---
>  drivers/hid/usbhid/hid-core.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-10 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 19:20 [PATCH] HID: usbhid: remove unneeded initialization of quirks_param[] Mathias Krause
2014-06-10 12:33 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).