Message ID | 20210701144305.110078-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4bb233b7ba87785c7ac519863f51ba61f4dbc459 |
Headers | show |
Series | usb: gadget: u_serial: remove WARN_ON on null port | expand |
diff --git a/drivers/usb/gadget/function/u_serial.c b/drivers/usb/gadget/function/u_serial.c index 1e59204..83fb82c 100644 --- a/drivers/usb/gadget/function/u_serial.c +++ b/drivers/usb/gadget/function/u_serial.c @@ -1198,7 +1198,7 @@ void gserial_free_line(unsigned char port_num) struct gs_port *port; mutex_lock(&ports[port_num].lock); - if (WARN_ON(!ports[port_num].port)) { + if (!ports[port_num].port) { mutex_unlock(&ports[port_num].lock); return; }