Skip to content

Commit

Permalink
staging: dgap: remove unused case value in dgap_parsefile()
Browse files Browse the repository at this point in the history
If rc is zero, this function will returns with an error and
cannot reach switch-case statement.

Signed-off-by: Daeseok Youn <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
daeseokyoun authored and gregkh committed Jul 15, 2014
1 parent dfa30ac commit 8e82ce0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/dgap/dgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -6357,10 +6357,6 @@ static int dgap_parsefile(char **in)
}

switch (rc) {
case 0:
dgap_err("unexpected end of file");
return -1;

case BEGIN: /* should only be 1 begin */
dgap_err("unexpected config_begin\n");
return -1;
Expand Down

0 comments on commit 8e82ce0

Please sign in to comment.