]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: host: remove unnecessary condition check
authorChengguang Xu <cgxu519@gmx.com>
Fri, 2 Nov 2018 14:14:27 +0000 (22:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2018 12:22:06 +0000 (13:22 +0100)
commit1d3e773ae0a65a1b6b5d2aa21250c96f3e975aba
treeed9243a969b159521231e48ecbaf5f3f9b0957aa
parent157c0f2f641a9938382b092c64548ebdabfe25e0
usb: host: remove unnecessary condition check

dma_pool_destroy() can handle NULL pointer correctly, so there is
no need to check NULL pointer before calling dma_pool_destroy().

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-mem.c