Skip to content

Commit

Permalink
move all return -EIO to separate lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Jun 18, 2013
1 parent 86df90a commit 711c52b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snappy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,9 @@ static int internal_uncompress(struct source *r,
decompress_all_tags(&decompressor, writer);

exit_snappy_decompressor(&decompressor);
return (decompressor.eof && writer_check_length(writer)) ? 0 : -EIO;
if (decompressor.eof && writer_check_length(writer))
return 0;
return -EIO;
}

static inline int compress(struct snappy_env *env, struct source *reader,
Expand Down

0 comments on commit 711c52b

Please sign in to comment.