staging: media: Remove unused function atomisp_set_stop_timeout()

The function atomisp_set_stop_timeout on being called, simply returns
back. The function hasn't been mentioned in the TODO and doesn't have
FIXME code around. Hence, atomisp_set_stop_timeout and its calls have been
removed.

This was done using Coccinelle.

@@
identifier f;
@@

void f(...) {

-return;

}

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
simran singhal 2017-03-12 22:40:23 +05:30 committed by Greg Kroah-Hartman
parent 68f9c65467
commit cfd23945be
3 changed files with 0 additions and 7 deletions

View File

@ -1692,7 +1692,6 @@ void atomisp_wdt_work(struct work_struct *work)
} }
} }
#endif #endif
atomisp_set_stop_timeout(ATOMISP_CSS_STOP_TIMEOUT_US);
dev_err(isp->dev, "timeout recovery handling done\n"); dev_err(isp->dev, "timeout recovery handling done\n");
atomic_set(&isp->wdt_work_queued, 0); atomic_set(&isp->wdt_work_queued, 0);

View File

@ -660,7 +660,6 @@ int atomisp_css_set_acc_parameters(struct atomisp_acc_fw *acc_fw);
int atomisp_css_isr_thread(struct atomisp_device *isp, int atomisp_css_isr_thread(struct atomisp_device *isp,
bool *frame_done_found, bool *frame_done_found,
bool *css_pipe_done); bool *css_pipe_done);
void atomisp_set_stop_timeout(unsigned int timeout);
bool atomisp_css_valid_sof(struct atomisp_device *isp); bool atomisp_css_valid_sof(struct atomisp_device *isp);

View File

@ -4699,11 +4699,6 @@ int atomisp_css_isr_thread(struct atomisp_device *isp,
return 0; return 0;
} }
void atomisp_set_stop_timeout(unsigned int timeout)
{
return;
}
bool atomisp_css_valid_sof(struct atomisp_device *isp) bool atomisp_css_valid_sof(struct atomisp_device *isp)
{ {
unsigned int i, j; unsigned int i, j;