diff for duplicates of <YBKFW60qMJbtjvum@mwanda> diff --git a/a/1.txt b/N1/1.txt index 0a4944c..5b808a9 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -18,7 +18,7 @@ drivers/usb/serial/mos7720.c 1086 } 1087 } 1088 - 1089 if (urb = NULL) { + 1089 if (urb == NULL) { 1090 dev_dbg(&port->dev, "%s - no more free urbs\n", __func__); 1091 goto exit; @@ -34,7 +34,7 @@ index ed347a6d50ba..aa55169796a3 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c @@ -1094,8 +1094,10 @@ static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port, - if (urb->transfer_buffer = NULL) { + if (urb->transfer_buffer == NULL) { urb->transfer_buffer = kmalloc(URB_TRANSFER_BUFFER_SIZE, GFP_ATOMIC); - if (!urb->transfer_buffer) diff --git a/a/content_digest b/N1/content_digest index 1229c1f..cdae0db 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH] USB: serial: mos7720: Fix error code in mos7720_write()\0" - "Date\0Thu, 28 Jan 2021 09:35:23 +0000\0" + "Date\0Thu, 28 Jan 2021 12:35:23 +0300\0" "To\0Johan Hovold <johan@kernel.org>\0" "Cc\0Greg Kroah-Hartman <gregkh@linuxfoundation.org>" linux-usb@vger.kernel.org @@ -27,7 +27,7 @@ " 1086 }\n" " 1087 }\n" " 1088 \n" - " 1089 if (urb = NULL) {\n" + " 1089 if (urb == NULL) {\n" " 1090 dev_dbg(&port->dev, \"%s - no more free urbs\\n\", __func__);\n" " 1091 goto exit;\n" "\n" @@ -43,7 +43,7 @@ "--- a/drivers/usb/serial/mos7720.c\n" "+++ b/drivers/usb/serial/mos7720.c\n" "@@ -1094,8 +1094,10 @@ static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port,\n" - " \tif (urb->transfer_buffer = NULL) {\n" + " \tif (urb->transfer_buffer == NULL) {\n" " \t\turb->transfer_buffer = kmalloc(URB_TRANSFER_BUFFER_SIZE,\n" " \t\t\t\t\t GFP_ATOMIC);\n" "-\t\tif (!urb->transfer_buffer)\n" @@ -57,4 +57,4 @@ "-- \n" 2.29.2 -339f9c0cc61dbbd4692e192d36c8eed27de2746d1657a9e7f8da69bd6a5a189a +6aade39b647b47faf620896ba5981ba0b0c06cefa9c046efd3d46340b9942196
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.