qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] block: remove redundant check before g_slist_fi


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] block: remove redundant check before g_slist_find()
Date: Tue, 30 Jun 2015 13:54:29 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Jun 29, 2015 at 04:12:13PM +0300, Alberto Garcia wrote:
> An empty GSList is represented by a NULL pointer, therefore it's a
> perfectly valid argument for g_slist_find() and there's no need to
> make any additional check.
> 
> Signed-off-by: Alberto Garcia <address@hidden>
> ---
>  block/io.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

Attachment: pgpGKY9aeVqDr.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]