• Jeff Dike's avatar
    uml: fix aio compilation bug · da3e30e7
    Jeff Dike authored
    Restructure do_aio thanks to commments from Ulrich and Al.
    
    Uli started this by seeing that UML's initialization of a struct iocb
    initialized fields that it shouldn't.
    
    Al followed up by adding the following cleanups:
    	eliminating a variable by just using an anonymous structure in
    its place.
    	hoisting a duplicated line out of the switch.
    	simplifying the error checking at the end.
    
    I added a severity to the printk.
    Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Ulrich Drepper <drepper@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    da3e30e7
aio.c 9.03 KB