summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-mem.c
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-08-26 23:29:48 +0300
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2013-12-02 12:59:47 -0800
commit0d3703be3a671ca225a796f4ae6e904dd83c2e07 (patch)
tree648163106adffeca99670cdfb5bc1c8b8a3cf7d5 /drivers/usb/host/xhci-mem.c
parent63a67a72d63dd077c2313cf19eb29d8e4bfa6963 (diff)
downloadop-kernel-dev-0d3703be3a671ca225a796f4ae6e904dd83c2e07.zip
op-kernel-dev-0d3703be3a671ca225a796f4ae6e904dd83c2e07.tar.gz
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 <burzalodowa@gmail.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
-rw-r--r--drivers/usb/host/xhci-mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index 90709cf..1445e08 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);
}
OpenPOWER on IntegriCloud