staging/easycap: reduce code nesting in easycap_sound.c
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 6 Mar 2011 08:59:03 +0000 (10:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Mar 2011 21:52:57 +0000 (13:52 -0800)
commit5917def58ab9f5848f2d1da835a33a490d0c8c69
treeb1ebd52a24a1af94a7b70613933269dc02d54123
parent07ba111f0d5127d4c830799605e2cd0922611bf5
staging/easycap: reduce code nesting in easycap_sound.c

Reshuffle error handling to reduce indentation nesting
This reduce number of lines exceeding 80 characters
from 41 to 15

use:
if (error)
(return, goto, continue)
CODE

instead of:

if (good)
<CODE>
else
<EXCEPTION HANDLING>

Cc: Dan Carpenter <error27@gmail.com>
Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap_sound.c