* [PATCH] Staging: media: Remove unneeded log macro
@ 2015-02-19 22:34 Vatika Harlalka
2015-02-20 9:04 ` [Outreachy kernel] " Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Vatika Harlalka @ 2015-02-19 22:34 UTC (permalink / raw)
To: outreachy-kernel
This patch is to remove unneeded log macros which only
indicate entry/exit from a function. The kernel provides
mechanisms for function tracing so these can be dropped.
Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
---
drivers/staging/media/tlg2300/pd-main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/media/tlg2300/pd-main.c b/drivers/staging/media/tlg2300/pd-main.c
index b31f479..c2dd3b4 100644
--- a/drivers/staging/media/tlg2300/pd-main.c
+++ b/drivers/staging/media/tlg2300/pd-main.c
@@ -207,7 +207,6 @@ void poseidon_delete(struct kref *kref)
pd->interface = NULL;
}
kfree(pd);
- log();
}
static int firmware_download(struct usb_device *udev)
@@ -538,7 +537,6 @@ static int __init poseidon_init(void)
static void __exit poseidon_exit(void)
{
- log();
unregister_pm_notifier(&pm_notifer);
usb_deregister(&poseidon_driver);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Outreachy kernel] [PATCH] Staging: media: Remove unneeded log macro
2015-02-19 22:34 [PATCH] Staging: media: Remove unneeded log macro Vatika Harlalka
@ 2015-02-20 9:04 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2015-02-20 9:04 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Vatika Harlalka
On Friday 20 February 2015 04:04:12 Vatika Harlalka wrote:
> This patch is to remove unneeded log macros which only
> indicate entry/exit from a function. The kernel provides
> mechanisms for function tracing so these can be dropped.
>
> Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
I believe this driver was removed already, so the patch no longer
applies.
>
> diff --git a/drivers/staging/media/tlg2300/pd-main.c b/drivers/staging/media/tlg2300/pd-main.c
> index b31f479..c2dd3b4 100644
> --- a/drivers/staging/media/tlg2300/pd-main.c
> +++ b/drivers/staging/media/tlg2300/pd-main.c
> @@ -207,7 +207,6 @@ void poseidon_delete(struct kref *kref)
> pd->interface = NULL;
> }
> kfree(pd);
> - log();
> }
>
> static int firmware_download(struct usb_device *udev)
Doing this is a good idea in general, but if I did this for another
driver, I would remove the macro definition along with the uses.
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-20 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19 22:34 [PATCH] Staging: media: Remove unneeded log macro Vatika Harlalka
2015-02-20 9:04 ` [Outreachy kernel] " Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.