Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
sol-util-file: Remove useless variable
Browse files Browse the repository at this point in the history
It was set and updated but never read.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
  • Loading branch information
edersondisouza committed Sep 2, 2015
1 parent fd274c9 commit 295f6f3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/shared/sol-util-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ sol_util_load_file_raw(const int fd)
{
struct stat st;
ssize_t ret;
size_t buffer_size = 0;
struct sol_buffer *buffer;

if (fd < 0)
Expand All @@ -181,7 +180,6 @@ sol_util_load_file_raw(const int fd)
ret = sol_util_fill_buffer(fd, buffer, st.st_size);
} else {
do {
buffer_size += CHUNK_SIZE;
ret = sol_util_fill_buffer(fd, buffer, CHUNK_SIZE);
} while (ret > 0);
}
Expand Down

0 comments on commit 295f6f3

Please sign in to comment.