Re: [RFC 3/4] xhci: remove unnecessary check in xhci_free_stream_info()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Applied to for-usb-next-queue for 3.14.

Sarah Sharp

On Mon, Aug 26, 2013 at 11:29:48PM +0300, Xenia Ragiadakou wrote:
> 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@xxxxxxxxx>
> ---
>  drivers/usb/host/xhci-mem.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
> index 53b972c..6dc5c8b 100644
> --- a/drivers/usb/host/xhci-mem.c
> +++ b/drivers/usb/host/xhci-mem.c
> @@ -721,8 +721,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);
>  }
>  
> -- 
> 1.8.3.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux