lkml.org 
[lkml]   [2012]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] kvm tools: remove unneeded check from disk code
Date
We already know 'disk' is non-null.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
tools/kvm/disk/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/kvm/disk/core.c b/tools/kvm/disk/core.c
index dd59751..4e9bda0 100644
--- a/tools/kvm/disk/core.c
+++ b/tools/kvm/disk/core.c
@@ -105,7 +105,7 @@ struct disk_image *disk_image__new(int fd, u64 size,
}

#ifdef CONFIG_HAS_AIO
- if (disk) {
+ {
pthread_t thread;

disk->evt = eventfd(0, 0);
--
1.8.0


\
 
 \ /
  Last update: 2012-12-20 21:01    [W:0.293 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site