Index: uspace/drv/usbhid/main.c
===================================================================
--- uspace/drv/usbhid/main.c	(revision 56f8a04e9aa9e71b0207654a6a33d8650333226f)
+++ uspace/drv/usbhid/main.c	(revision a6610d45ae7feea1b33a3df019a3a86504051cf5)
@@ -179,5 +179,5 @@
 	usb_log_debug("usb_hid_add_device()\n");
 	
-	if (dev != NULL) {
+	if (dev == NULL) {
 		usb_log_warning("Wrong parameter given for add_device().\n");
 		return EINVAL;
