Commit 0d82b57c authored by simran singhal's avatar simran singhal Committed by Greg Kroah-Hartman

staging: css2400/sh_css: Remove parentheses from return arguments

The sematic patch used for this is:
@@
identifier i;
constant c;
@@
return
- (
    \(i\|-i\|i(...)\|c\)
- )
  ;
Signed-off-by: default avatarsimran singhal <singhalsimran0@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d57b894
...@@ -1989,7 +1989,7 @@ enum ia_css_err ia_css_suspend(void) ...@@ -1989,7 +1989,7 @@ enum ia_css_err ia_css_suspend(void)
for(i=0;i<MAX_ACTIVE_STREAMS;i++) for(i=0;i<MAX_ACTIVE_STREAMS;i++)
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "==*> after 1: seed %d (%p)\n", i, my_css_save.stream_seeds[i].stream); ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "==*> after 1: seed %d (%p)\n", i, my_css_save.stream_seeds[i].stream);
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_suspend() leave\n"); ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_suspend() leave\n");
return(IA_CSS_SUCCESS); return IA_CSS_SUCCESS;
} }
enum ia_css_err enum ia_css_err
...@@ -2001,10 +2001,10 @@ ia_css_resume(void) ...@@ -2001,10 +2001,10 @@ ia_css_resume(void)
err = ia_css_init(&(my_css_save.driver_env), my_css_save.loaded_fw, my_css_save.mmu_base, my_css_save.irq_type); err = ia_css_init(&(my_css_save.driver_env), my_css_save.loaded_fw, my_css_save.mmu_base, my_css_save.irq_type);
if (err != IA_CSS_SUCCESS) if (err != IA_CSS_SUCCESS)
return(err); return err;
err = ia_css_start_sp(); err = ia_css_start_sp();
if (err != IA_CSS_SUCCESS) if (err != IA_CSS_SUCCESS)
return(err); return err;
my_css_save.mode = sh_css_mode_resume; my_css_save.mode = sh_css_mode_resume;
for(i=0;i<MAX_ACTIVE_STREAMS;i++) for(i=0;i<MAX_ACTIVE_STREAMS;i++)
{ {
...@@ -2018,7 +2018,7 @@ ia_css_resume(void) ...@@ -2018,7 +2018,7 @@ ia_css_resume(void)
if (i) if (i)
for(j=0;j<i;j++) for(j=0;j<i;j++)
ia_css_stream_unload(my_css_save.stream_seeds[j].stream); ia_css_stream_unload(my_css_save.stream_seeds[j].stream);
return(err); return err;
} }
err = ia_css_stream_start(my_css_save.stream_seeds[i].stream); err = ia_css_stream_start(my_css_save.stream_seeds[i].stream);
if (err != IA_CSS_SUCCESS) if (err != IA_CSS_SUCCESS)
...@@ -2028,7 +2028,7 @@ ia_css_resume(void) ...@@ -2028,7 +2028,7 @@ ia_css_resume(void)
ia_css_stream_stop(my_css_save.stream_seeds[j].stream); ia_css_stream_stop(my_css_save.stream_seeds[j].stream);
ia_css_stream_unload(my_css_save.stream_seeds[j].stream); ia_css_stream_unload(my_css_save.stream_seeds[j].stream);
} }
return(err); return err;
} }
*my_css_save.stream_seeds[i].orig_stream = my_css_save.stream_seeds[i].stream; *my_css_save.stream_seeds[i].orig_stream = my_css_save.stream_seeds[i].stream;
for(j=0;j<my_css_save.stream_seeds[i].num_pipes;j++) for(j=0;j<my_css_save.stream_seeds[i].num_pipes;j++)
...@@ -2037,7 +2037,7 @@ ia_css_resume(void) ...@@ -2037,7 +2037,7 @@ ia_css_resume(void)
} }
my_css_save.mode = sh_css_mode_working; my_css_save.mode = sh_css_mode_working;
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_resume() leave: return_void\n"); ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_resume() leave: return_void\n");
return(IA_CSS_SUCCESS); return IA_CSS_SUCCESS;
} }
enum ia_css_err enum ia_css_err
...@@ -10226,7 +10226,7 @@ ia_css_stream_load(struct ia_css_stream *stream) ...@@ -10226,7 +10226,7 @@ ia_css_stream_load(struct ia_css_stream *stream)
for(k=0;k<j;k++) for(k=0;k<j;k++)
ia_css_pipe_destroy(my_css_save.stream_seeds[i].pipes[k]); ia_css_pipe_destroy(my_css_save.stream_seeds[i].pipes[k]);
} }
return(err); return err;
} }
err = ia_css_stream_create(&(my_css_save.stream_seeds[i].stream_config), my_css_save.stream_seeds[i].num_pipes, err = ia_css_stream_create(&(my_css_save.stream_seeds[i].stream_config), my_css_save.stream_seeds[i].num_pipes,
my_css_save.stream_seeds[i].pipes, &(my_css_save.stream_seeds[i].stream)); my_css_save.stream_seeds[i].pipes, &(my_css_save.stream_seeds[i].stream));
...@@ -10235,12 +10235,12 @@ ia_css_stream_load(struct ia_css_stream *stream) ...@@ -10235,12 +10235,12 @@ ia_css_stream_load(struct ia_css_stream *stream)
ia_css_stream_destroy(stream); ia_css_stream_destroy(stream);
for(j=0;j<my_css_save.stream_seeds[i].num_pipes;j++) for(j=0;j<my_css_save.stream_seeds[i].num_pipes;j++)
ia_css_pipe_destroy(my_css_save.stream_seeds[i].pipes[j]); ia_css_pipe_destroy(my_css_save.stream_seeds[i].pipes[j]);
return(err); return err;
} }
break; break;
} }
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_stream_load() exit, \n"); ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_stream_load() exit, \n");
return(IA_CSS_SUCCESS); return IA_CSS_SUCCESS;
#else #else
/* TODO remove function - DEPRECATED */ /* TODO remove function - DEPRECATED */
(void)stream; (void)stream;
...@@ -10381,7 +10381,7 @@ ia_css_stream_unload(struct ia_css_stream *stream) ...@@ -10381,7 +10381,7 @@ ia_css_stream_unload(struct ia_css_stream *stream)
break; break;
} }
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_stream_unload() exit, \n"); ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_stream_unload() exit, \n");
return(IA_CSS_SUCCESS); return IA_CSS_SUCCESS;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment