aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ch341.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/ch341.c')
-rw-r--r--drivers/usb/serial/ch341.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c
index c2a4171ab9cb..8908760cca9f 100644
--- a/drivers/usb/serial/ch341.c
+++ b/drivers/usb/serial/ch341.c
@@ -384,10 +384,8 @@ static void ch341_break_ctl(struct tty_struct *tty, int break_state)
384 uint8_t *break_reg; 384 uint8_t *break_reg;
385 385
386 break_reg = kmalloc(2, GFP_KERNEL); 386 break_reg = kmalloc(2, GFP_KERNEL);
387 if (!break_reg) { 387 if (!break_reg)
388 dev_err(&port->dev, "%s - kmalloc failed\n", __func__);
389 return; 388 return;
390 }
391 389
392 r = ch341_control_in(port->serial->dev, CH341_REQ_READ_REG, 390 r = ch341_control_in(port->serial->dev, CH341_REQ_READ_REG,
393 ch341_break_reg, 0, break_reg, 2); 391 ch341_break_reg, 0, break_reg, 2);