ARM: OMAP: Remove unnecessary memset in dsp task.c
Subsystems (2)
PATCH 1/1 ARM: OMAP: Remove unnecessary memset in dsp task.c
There is much more duplicated code can be removed in task.c by using already available wait_for_event_{un}interruptible_{timeout}, prepare_wait, finish_wait etc calls. What do you say?
Signature · 2 lines
---Komal Shah http://komalshah.blogspot.com
From 4e89cea55f7aa2162a7541106443eef609666ed0 Mon Sep 17 00:00:00 2001
From: Komal Shah <[email protected]>
Date: Mon, 4 Dec 2006 23:52:11 +0530
Subject: [PATCH] ARM: OMAP: Remove unnecessary memset in dsp task.c
- and remove commented "struct device_driver"
--- arch/arm/plat-omap/dsp/task.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/plat-omap/dsp/task.c +0 -4
@@ -108,7 +108,6 @@ struct rcvdt_bk_struct {struct taskdev {struct bus_type *bus; -// struct device_driver *driver; struct device dev;/* Generic device interface */ long state;
@@ -564,9 +563,6 @@ int dsp_task_config_all(u8 n)struct dsptask *taskheap;size_t devheapsz, taskheapsz; -memset (taskdev,0 ,sizeof (void *) *TASKDEV_MAX ); -memset (dsptask,0 ,sizeof (void *) *TASKDEV_MAX ); -printk (KERN_INFO "omapdsp: found %d task(s)\n" , n);if (n ==0 )return 0 ;
Signature · 1 line
1.4.3.4.g82cc
From: "ext Komal Shah" <[email protected]>
Subject: [PATCH] ARM: OMAP: Remove unnecessary memset in dsp task.c
Date: Mon, 4 Dec 2006 23:57:26 +0530
Quoted 3 lines
There is much more duplicated code can be removed in
task.cby using already available wait_for_event_{un}interruptible_{timeout},prepare_wait,finish_waitetc calls. What do you say?
Yes, it is;) I already have it and I will try to get them back.
BTW, for memset, I thought that the residual code is in the one in "dsp_taskmod_init()", isn't it?
Hiroshi DOYU
Quoted 33 lines · Komal Shah
There is much more duplicated code can be removed in
task.cby using already available wait_for_event_{un}interruptible_{timeout},prepare_wait,finish_waitetc calls. What do you say?Signature · 14 lines
---Komal Shah http://komalshah.blogspot.com From 4e89cea55f7aa2162a7541106443eef609666ed0 Mon Sep 17 00:00:00 2001 From: Komal Shah <[email protected]> Date: Mon, 4 Dec 2006 23:52:11 +0530 Subject: [PATCH] ARM: OMAP: Remove unnecessary memset in dsp task.c - and remove commented "struct device_driver" Signed-off-by: Komal Shah <[email protected]> --- arch/arm/plat-omap/dsp/task.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)arch/arm/plat-omap/dsp/task.c +0
-1@@ -108,7 +108,6 @@ struct rcvdt_bk_struct {struct taskdev {struct bus_type *bus; -// struct device_driver *driver; struct device dev;/* Generic device interface */ long state;
arch/arm/plat-omap/dsp/task.c int dsp_task_config_all(u8 n) · line 568
Quoted 9 lines
arch/arm/plat-omap/dsp/task.c +0
-3@@ -564,9 +563,6 @@ int dsp_task_config_all(u8 n)struct dsptask *taskheap;size_t devheapsz, taskheapsz; -memset (taskdev,0 ,sizeof (void *) *TASKDEV_MAX ); -memset (dsptask,0 ,sizeof (void *) *TASKDEV_MAX ); -printk (KERN_INFO "omapdsp: found %d task(s)\n" , n);if (n ==0 )return 0 ;
Pushing today.
Tony