diff options
author | Joe Perches <joe@perches.com> | 2010-08-23 14:20:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-25 18:35:43 -0400 |
commit | c061b18df0f1fe3f50fe451dbbdc9ede3c19701a (patch) | |
tree | 91508aff083ab7a93d1e7f3b6eb933059d1a2776 /drivers/net/ehea/ehea_main.c | |
parent | 31018e068edb9eed740bec5cf14802c3c676c9ee (diff) |
drivers/net: Remove address use from assignments of function pointers
"foo = &function" is more commonly written "foo = function"
Done with coccinelle script:
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
drivers/net/tehuti.c used a function and struct with the
same name, the function was renamed.
Compile tested x86 only.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index 2b98ee80fa33..043d99013056 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -3721,7 +3721,7 @@ int __init ehea_module_init(void) | |||
3721 | if (ret) | 3721 | if (ret) |
3722 | ehea_info("failed registering memory remove notifier"); | 3722 | ehea_info("failed registering memory remove notifier"); |
3723 | 3723 | ||
3724 | ret = crash_shutdown_register(&ehea_crash_handler); | 3724 | ret = crash_shutdown_register(ehea_crash_handler); |
3725 | if (ret) | 3725 | if (ret) |
3726 | ehea_info("failed registering crash handler"); | 3726 | ehea_info("failed registering crash handler"); |
3727 | 3727 | ||
@@ -3746,7 +3746,7 @@ out3: | |||
3746 | out2: | 3746 | out2: |
3747 | unregister_memory_notifier(&ehea_mem_nb); | 3747 | unregister_memory_notifier(&ehea_mem_nb); |
3748 | unregister_reboot_notifier(&ehea_reboot_nb); | 3748 | unregister_reboot_notifier(&ehea_reboot_nb); |
3749 | crash_shutdown_unregister(&ehea_crash_handler); | 3749 | crash_shutdown_unregister(ehea_crash_handler); |
3750 | out: | 3750 | out: |
3751 | return ret; | 3751 | return ret; |
3752 | } | 3752 | } |
@@ -3759,7 +3759,7 @@ static void __exit ehea_module_exit(void) | |||
3759 | driver_remove_file(&ehea_driver.driver, &driver_attr_capabilities); | 3759 | driver_remove_file(&ehea_driver.driver, &driver_attr_capabilities); |
3760 | ibmebus_unregister_driver(&ehea_driver); | 3760 | ibmebus_unregister_driver(&ehea_driver); |
3761 | unregister_reboot_notifier(&ehea_reboot_nb); | 3761 | unregister_reboot_notifier(&ehea_reboot_nb); |
3762 | ret = crash_shutdown_unregister(&ehea_crash_handler); | 3762 | ret = crash_shutdown_unregister(ehea_crash_handler); |
3763 | if (ret) | 3763 | if (ret) |
3764 | ehea_info("failed unregistering crash handler"); | 3764 | ehea_info("failed unregistering crash handler"); |
3765 | unregister_memory_notifier(&ehea_mem_nb); | 3765 | unregister_memory_notifier(&ehea_mem_nb); |