USB: serial: remove redundant OOM messages
Remove redundant error messages on allocation failures, which have already been logged. Cc: Joe Perches <joe@perches.com> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

کامیت شده توسط
Greg Kroah-Hartman

والد
4d5147ec90
کامیت
10c642d077
@@ -384,10 +384,8 @@ static void ch341_break_ctl(struct tty_struct *tty, int break_state)
|
||||
uint8_t *break_reg;
|
||||
|
||||
break_reg = kmalloc(2, GFP_KERNEL);
|
||||
if (!break_reg) {
|
||||
dev_err(&port->dev, "%s - kmalloc failed\n", __func__);
|
||||
if (!break_reg)
|
||||
return;
|
||||
}
|
||||
|
||||
r = ch341_control_in(port->serial->dev, CH341_REQ_READ_REG,
|
||||
ch341_break_reg, 0, break_reg, 2);
|
||||
|
مرجع در شماره جدید
Block a user