[PATCH] bug in non-blocking use of sound driver
James Manning
jmm en raleigh.ibm.com
Jue Ene 20 09:13:19 CST 2000
[ Wednesday, January 19, 2000 ] Eric Lammerts wrote:
> +
> + if ((file->f_flags & O_NONBLOCK) && buf_no == -EAGAIN)
> + return -EAGAIN;
>
> return buf_no;
> }
You could leave out adding this section since the if() is only
sucessful for buf_no == -EAGAIN and in that scenario we might
as well just use the "return buf_no" already in place...
code removal like this always makes patches more likely to be
accepted, and reducing lines of code is a Good Thing :)
James
--
Miscellaneous Engineer --- IBM Netfinity Performance Development
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda