Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42808
b: refs/heads/master
c: 8bca98c
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Dec 7, 2006
1 parent 699a35c commit b493b1c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 138ae6631a3d6f86851dd53686fa88295d1398bd
refs/heads/master: 8bca98cabf6db738b06d6f3b6d4b6c5f2a5cb7b6
8 changes: 4 additions & 4 deletions trunk/drivers/block/paride/pcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,28 +912,28 @@ static int __init pcd_init(void)
int unit;

if (disable)
return -1;
return -EINVAL;

pcd_init_units();

if (pcd_detect())
return -1;
return -ENODEV;

/* get the atapi capabilities page */
pcd_probe_capabilities();

if (register_blkdev(major, name)) {
for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++)
put_disk(cd->disk);
return -1;
return -EBUSY;
}

pcd_queue = blk_init_queue(do_pcd_request, &pcd_lock);
if (!pcd_queue) {
unregister_blkdev(major, name);
for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++)
put_disk(cd->disk);
return -1;
return -ENOMEM;
}

for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) {
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/block/paride/pf.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,25 +933,25 @@ static int __init pf_init(void)
int unit;

if (disable)
return -1;
return -EINVAL;

pf_init_units();

if (pf_detect())
return -1;
return -ENODEV;
pf_busy = 0;

if (register_blkdev(major, name)) {
for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++)
put_disk(pf->disk);
return -1;
return -EBUSY;
}
pf_queue = blk_init_queue(do_pf_request, &pf_spin_lock);
if (!pf_queue) {
unregister_blkdev(major, name);
for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++)
put_disk(pf->disk);
return -1;
return -ENOMEM;
}

blk_queue_max_phys_segments(pf_queue, cluster);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/block/paride/pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,14 +646,14 @@ static int __init pg_init(void)
int err;

if (disable){
err = -1;
err = -EINVAL;
goto out;
}

pg_init_units();

if (pg_detect()) {
err = -1;
err = -ENODEV;
goto out;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/block/paride/pt.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,12 +946,12 @@ static int __init pt_init(void)
int err;

if (disable) {
err = -1;
err = -EINVAL;
goto out;
}

if (pt_detect()) {
err = -1;
err = -ENODEV;
goto out;
}

Expand Down

0 comments on commit b493b1c

Please sign in to comment.