Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346435
b: refs/heads/master
c: 942bfb3
h: refs/heads/master
i:
  346433: de8beef
  346431: ef62097
v: v3
  • Loading branch information
Wei Yongjun authored and Linus Torvalds committed Dec 18, 2012
1 parent 1b80298 commit 707524d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 0d7ecb8389a34f650f0d4ab23a56c94595a75ccf
refs/heads/master: 942bfb3ed08b677e0a447096c501d6b0b49f44f9
14 changes: 7 additions & 7 deletions trunk/drivers/rtc/rtc-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,24 +152,24 @@ static int __init test_init(void)

if ((test1 = platform_device_alloc("rtc-test", 1)) == NULL) {
err = -ENOMEM;
goto exit_free_test0;
goto exit_put_test0;
}

if ((err = platform_device_add(test0)))
goto exit_free_test1;
goto exit_put_test1;

if ((err = platform_device_add(test1)))
goto exit_device_unregister;
goto exit_del_test0;

return 0;

exit_device_unregister:
platform_device_unregister(test0);
exit_del_test0:
platform_device_del(test0);

exit_free_test1:
exit_put_test1:
platform_device_put(test1);

exit_free_test0:
exit_put_test0:
platform_device_put(test0);

exit_driver_unregister:
Expand Down

0 comments on commit 707524d

Please sign in to comment.