Calling error_report() from within a function that takes an Error ** argument is suspicious. qemu_fsdev_add() does that, and its caller fsdev_init_func() then fails without setting an error. Its caller main(), via qemu_opts_foreach(), is fine with it, but clean it up anyway. Cc: Greg Kurz <groug@kaod.org> Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Greg Kurz <groug@kaod.org> Message-Id: <20181017082702.5581-32-armbru@redhat.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			396 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			396 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * 9p
 | 
						|
 *
 | 
						|
 * Copyright IBM, Corp. 2010
 | 
						|
 *
 | 
						|
 * Authors:
 | 
						|
 *  Gautham R Shenoy <ego@in.ibm.com>
 | 
						|
 *
 | 
						|
 * This work is licensed under the terms of the GNU GPL, version 2.  See
 | 
						|
 * the COPYING file in the top-level directory.
 | 
						|
 *
 | 
						|
 */
 | 
						|
#include "qemu/osdep.h"
 | 
						|
#include "qemu-fsdev.h"
 | 
						|
#include "qemu/config-file.h"
 | 
						|
#include "qemu/module.h"
 | 
						|
 | 
						|
int qemu_fsdev_add(QemuOpts *opts, Error **errp)
 | 
						|
{
 | 
						|
    return 0;
 | 
						|
}
 |