]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: 8250_port: Drop duplicate NULL check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 28 Jan 2026 14:27:26 +0000 (15:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2026 14:05:25 +0000 (15:05 +0100)
commit7885af04df6e4efd72910200c1bfc079d61202e4
treeaf0af59a4fb94cc863cfa5d23b3065c0a65704e8
parent43c2b86ff633c34831c8430925ba73d7c20da1ad
serial: 8250_port: Drop duplicate NULL check

serial8250_release_dma() is NULL-aware, no need to check this in the caller.
While at it, make sure DMA won't be used again, by NULLifying the pointer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/20260128142726.128175-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c