summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-02 00:40:56 +0000
committerPeter Jones <pjones@redhat.com>2005-03-02 00:40:56 +0000
commitd0937d10b3785ddefd4ef02c6cfccd9f712ba9e0 (patch)
tree04dd5735db4476a0190d4c9035623a779fca7c0d /isys
parent845ebcd1fb896271f3ef321b70c39be70a072402 (diff)
downloadanaconda-d0937d10b3785ddefd4ef02c6cfccd9f712ba9e0.tar.gz
anaconda-d0937d10b3785ddefd4ef02c6cfccd9f712ba9e0.tar.xz
anaconda-d0937d10b3785ddefd4ef02c6cfccd9f712ba9e0.zip
read_disk_sb's return value is pretty suspect anyway, but now we do actually
put the read's return some place. We still don't care what it is.
Diffstat (limited to 'isys')
-rw-r--r--isys/pdc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/isys/pdc.c b/isys/pdc.c
index 56a04fcbb..33bd8fea5 100644
--- a/isys/pdc.c
+++ b/isys/pdc.c
@@ -131,7 +131,7 @@ static unsigned long long calc_pdcblock_offset (int fd) {
static int read_disk_sb (int fd, unsigned char *buffer,int bufsize)
{
- int ret = -1;
+ int ret;
unsigned long long sb_offset;
/*
@@ -143,11 +143,9 @@ static int read_disk_sb (int fd, unsigned char *buffer,int bufsize)
return -1;
lseek64(fd, sb_offset * 512, SEEK_SET);
- read (fd, buffer, bufsize);
+ ret = read (fd, buffer, bufsize);
- ret = 0;
-
- return ret;
+ return 0;
}
static unsigned int calc_sb_csum (unsigned int* ptr)