From 11d738a430658b512d53ae7376c3639302ef7fb2 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 5 Feb 2020 15:02:56 +0100 Subject: [PATCH] wacom: remove control device It is unused, and it leads to an unexpected entry in the Input preferences. Change-Id: I68f31c3ae6baca7be1a5d6070dc1ebcf04522dad Reviewed-on: https://review.haiku-os.org/c/haiku/+/2208 Reviewed-by: waddlesplash --- src/add-ons/kernel/drivers/input/wacom/wacom.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/add-ons/kernel/drivers/input/wacom/wacom.c b/src/add-ons/kernel/drivers/input/wacom/wacom.c index fa28966f59..f2bacc908f 100644 --- a/src/add-ons/kernel/drivers/input/wacom/wacom.c +++ b/src/add-ons/kernel/drivers/input/wacom/wacom.c @@ -403,13 +403,6 @@ device_open(const char *dname, uint32 flags, void** cookie) int n; status_t ret = B_ERROR; - char controlDevicePath[1024]; - sprintf(controlDevicePath, "%s%s", kBasePublishPath, "control"); - if (strcmp(dname, controlDevicePath) == 0) { - dprintf(ID "device_open() -> refuse to open control device\n"); - return B_ERROR; - } - n = atoi(dname + strlen(kBasePublishPath)); DPRINTF_INFO((ID "device_open(\"%s\",%d,...)\n", dname, flags)); @@ -725,12 +718,7 @@ publish_devices() i++; } } - // publish the currently fake control device - sDeviceNames[i] = (char*)malloc(strlen(kBasePublishPath) + 8); - if (sDeviceNames[i]) - sprintf(sDeviceNames[i], "%s%s", kBasePublishPath, "control"); - - sDeviceNames[i + 1] = NULL; + sDeviceNames[i] = NULL; } release_sem(sDeviceListLock);