From: Xenia Ragiadakou Date: Mon, 26 Aug 2013 20:29:48 +0000 (+0300) Subject: xhci: remove unnecessary check in xhci_free_stream_info() X-Git-Tag: Ubuntu-5.10.0-12.13~17639^2~130^2~65^2~7 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0d3703be3a671ca225a796f4ae6e904dd83c2e07;p=mirror_ubuntu-hirsute-kernel.git xhci: remove unnecessary check in xhci_free_stream_info() This patch removes the unneccessary check 'if (stream_info)' because there is already a check few lines above which ensures that stream_info is not NULL. Signed-off-by: Xenia Ragiadakou Signed-off-by: Sarah Sharp --- diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 90709cf45ee5..1445e08819cf 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -722,8 +722,7 @@ void xhci_free_stream_info(struct xhci_hcd *xhci, stream_info->stream_ctx_array, stream_info->ctx_array_dma); - if (stream_info) - kfree(stream_info->stream_rings); + kfree(stream_info->stream_rings); kfree(stream_info); }