fix dead code block, make surrounding code more readable, and remove unused mode variable
closes #20
This commit is contained in:
parent
8a3135083f
commit
a383f70f46
|
|
@ -1521,7 +1521,7 @@ void regionize(void)
|
||||||
void m_read(int ev, int *biosdrive)
|
void m_read(int ev, int *biosdrive)
|
||||||
/* Read the partition table from the current device. */
|
/* Read the partition table from the current device. */
|
||||||
{
|
{
|
||||||
int i, mode, n, v;
|
int i, n, v;
|
||||||
struct part_entry *pe;
|
struct part_entry *pe;
|
||||||
u32_t system_hz;
|
u32_t system_hz;
|
||||||
|
|
||||||
|
|
@ -1531,8 +1531,8 @@ void m_read(int ev, int *biosdrive)
|
||||||
stat_start(0);
|
stat_start(0);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
if ((device= open(curdev->name, mode= O_RDWR, 0666)) < 0) {
|
device = open(curdev->name, O_RDWR, 0666);
|
||||||
if (device >= 0) { close(device); device= -1; }
|
if (device < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user