0821e637f6
Since this driver is already included in mainline 4.6, lets integrate it into main kernel package instead of keeping as separate DKMS package. Fixes QubesOS/qubes-issues#2131
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 5ad629a82de37cbcaffc17861e07b5ec68ab75f4 Mon Sep 17 00:00:00 2001
|
|
From: Vladimir Zapolskiy <vz@mleia.com>
|
|
Date: Tue, 26 Apr 2016 09:50:31 -0700
|
|
Subject: [PATCH] Input: byd - don't wipe dynamically allocated memory twice
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Since memory for a private data is allocated by kzalloc() there is no
|
|
need to fill it with zeroes immediately after the allocation.
|
|
|
|
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
|
|
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
|
|
---
|
|
drivers/input/mouse/byd.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/drivers/input/mouse/byd.c b/drivers/input/mouse/byd.c
|
|
index fdc243c..ec73f75 100644
|
|
--- a/drivers/input/mouse/byd.c
|
|
+++ b/drivers/input/mouse/byd.c
|
|
@@ -474,7 +474,6 @@ int byd_init(struct psmouse *psmouse)
|
|
if (!priv)
|
|
return -ENOMEM;
|
|
|
|
- memset(priv, 0, sizeof(*priv));
|
|
setup_timer(&priv->timer, byd_clear_touch, (unsigned long) psmouse);
|
|
|
|
psmouse->private = priv;
|
|
--
|
|
2.5.5
|
|
|