Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d3703be authored by Xenia Ragiadakou's avatar Xenia Ragiadakou Committed by Sarah Sharp
Browse files

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: default avatarXenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
parent 63a67a72
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -722,7 +722,6 @@ 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);
}