Skip to content

Commit

Permalink
staging/easycap: reduce code nesting in easycap_sound.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent 07ba111 commit 5917def
Showing 1 changed file with 205 additions and 213 deletions.
Loading

0 comments on commit 5917def

Please sign in to comment.