From 976428f7fd56f6896313111b168e200108e060eb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Jun 2015 18:57:43 +0200 Subject: [PATCH] (udev_joypad.c) Remove 'Device connected' message - autoconfig already does this --- input/drivers_joypad/udev_joypad.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/input/drivers_joypad/udev_joypad.c b/input/drivers_joypad/udev_joypad.c index a325a2f799..78d461f1b7 100644 --- a/input/drivers_joypad/udev_joypad.c +++ b/input/drivers_joypad/udev_joypad.c @@ -330,20 +330,10 @@ static void udev_check_device(struct udev_device *dev, const char *path, bool ho return; if (udev_add_pad(dev, pad, fd, path)) - { - if (hotplugged) - { - char msg[512]; - snprintf(msg, sizeof(msg), "Device #%u (%s) connected.", pad, path); - rarch_main_msg_queue_push(msg, 0, 60, false); - RARCH_LOG("[udev]: %s\n", msg); - } - } - else - { - RARCH_ERR("[udev]: Failed to add pad: %s.\n", path); - close(fd); - } + return; + + RARCH_ERR("[udev]: Failed to add pad: %s.\n", path); + close(fd); } static void udev_free_pad(unsigned pad, bool hotplug)