]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/serial/whiteheat.c
USB: serial: remove redundant OOM messages
[~andy/linux] / drivers / usb / serial / whiteheat.c
index 36a7740e827c997ebbc156bfcb6e908cb02d1804..1d9d7008ad19aca13bbc5160cea414ab8260c3cb 100644 (file)
@@ -288,12 +288,8 @@ static int whiteheat_attach(struct usb_serial *serial)
 
        command_info = kmalloc(sizeof(struct whiteheat_command_private),
                                                                GFP_KERNEL);
-       if (command_info == NULL) {
-               dev_err(&serial->dev->dev,
-                       "%s: Out of memory for port structures\n",
-                       serial->type->description);
+       if (!command_info)
                goto no_command_private;
-       }
 
        mutex_init(&command_info->mutex);
        command_info->port_running = 0;
@@ -455,8 +451,6 @@ static int whiteheat_ioctl(struct tty_struct *tty,
        struct serial_struct serstruct;
        void __user *user_arg = (void __user *)arg;
 
-       dev_dbg(&port->dev, "%s - cmd 0x%.4x\n", __func__, cmd);
-
        switch (cmd) {
        case TIOCGSERIAL:
                memset(&serstruct, 0, sizeof(serstruct));