Removed unread stack variable

This commit is contained in:
Nicolas Tsiftes 2011-06-10 17:41:46 +02:00
parent 4bac5ac7b9
commit ce909a97e6

View file

@ -799,7 +799,6 @@ create_log(struct file *file, struct file_header *hdr)
static int static int
merge_log(coffee_page_t file_page, int extend) merge_log(coffee_page_t file_page, int extend)
{ {
coffee_page_t log_page;
struct file_header hdr, hdr2; struct file_header hdr, hdr2;
int fd, n; int fd, n;
cfs_offset_t offset; cfs_offset_t offset;
@ -808,7 +807,6 @@ merge_log(coffee_page_t file_page, int extend)
int i; int i;
read_header(&hdr, file_page); read_header(&hdr, file_page);
log_page = hdr.log_page;
fd = cfs_open(hdr.name, CFS_READ); fd = cfs_open(hdr.name, CFS_READ);
if(fd < 0) { if(fd < 0) {