Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61234
b: refs/heads/master
c: 2db61c9
h: refs/heads/master
v: v3
  • Loading branch information
Fernando Luis Vázquez Cao authored and Artem Bityutskiy committed Jul 18, 2007
1 parent 2506af3 commit 799e61d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: d08c3b78b8c46a01b8fa59037a0d9fbb777fb465
refs/heads/master: 2db61c95c03d08bb885c87a816540e75190c924a
5 changes: 0 additions & 5 deletions trunk/drivers/mtd/ubi/kapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ int ubi_get_device_info(int ubi_num, struct ubi_device_info *di)
{
const struct ubi_device *ubi;

if (!try_module_get(THIS_MODULE))
return -ENODEV;

if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES ||
!ubi_devices[ubi_num]) {
module_put(THIS_MODULE);
return -ENODEV;
}

Expand All @@ -52,7 +48,6 @@ int ubi_get_device_info(int ubi_num, struct ubi_device_info *di)
di->min_io_size = ubi->min_io_size;
di->ro_mode = ubi->ro_mode;
di->cdev = MKDEV(ubi->major, 0);
module_put(THIS_MODULE);
return 0;
}
EXPORT_SYMBOL_GPL(ubi_get_device_info);
Expand Down

0 comments on commit 799e61d

Please sign in to comment.