Good.

Regards,
Fernando.

> -----Original Message-----
> From: Ameya Palande [mailto:[email protected]]
> Sent: Tuesday, July 07, 2009 10:02 AM
> To: [email protected]
> Cc: Guzman Lugo, Fernando; Kanigeri, Hari; [email protected]
> Subject: [PATCH 4/4] DSPBRIDGE: Remove unnecessary conditions from some
> for loops
> 
> The status cannot be a failure value at the start of the loops,
> and the only changes to a failure state are accompanied by a
> break or goto, so these conditions are always true.
> 
> Signed-off-by: Phil Carmody <[email protected]>
> ---
>  drivers/dsp/bridge/pmgr/wcd.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/dsp/bridge/pmgr/wcd.c b/drivers/dsp/bridge/pmgr/wcd.c
> index 811b2fc..6b2136a 100644
> --- a/drivers/dsp/bridge/pmgr/wcd.c
> +++ b/drivers/dsp/bridge/pmgr/wcd.c
> @@ -904,7 +904,7 @@ u32 PROCWRAP_Load(union Trapped_Args *args)
>               goto func_cont;
>       }
> 
> -     for (i = 0; DSP_SUCCEEDED(status) && (i < count); i++) {
> +     for (i = 0; i < count; i++) {
>               if (argv[i]) {
>                       /* User space pointer to argument */
>                       temp = (char *) argv[i];
> @@ -945,7 +945,7 @@ u32 PROCWRAP_Load(union Trapped_Args *args)
>                       envp = NULL;
>                       goto func_cont;
>               }
> -             for (i = 0; DSP_SUCCEEDED(status) && envp[i]; i++) {
> +             for (i = 0; envp[i]; i++) {
>                       /* User space pointer to argument */
>                       temp = (char *)envp[i];
>                       /* len is increased by 1 to accommodate NULL */
> --
> 1.6.2.4
> 

Acked-by Fernando Guzman Lugo <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to