Skip to contentSkip to conversation

staging: media: Remove unused function atomisp_set_stop_timeout()

PATCH Superseded simran singhal 3 participants 4 messages Mar 10, 2017 – Mar 12, 2017

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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;

}

---
v1:
-Change Subject to include name of function -change commit message to include the coccinelle script

 drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c          | 1 -
 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat.h       | 1 -
 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c | 5 -----
 3 files changed, 7 deletions(-)
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c +0 -1
index d9a5c24..9720756 100644
@@ -1692,7 +1692,6 @@ void atomisp_wdt_work(struct work_struct *work)
 		}
 	}
 #endif
-	atomisp_set_stop_timeout(ATOMISP_CSS_STOP_TIMEOUT_US);
 	dev_err(isp->dev, "timeout recovery handling done\n");
 	atomic_set(&isp->wdt_work_queued, 0);
 
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat.h +0 -1
index e6b0cce..fb8b8fa 100644
@@ -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,
 			   bool *frame_done_found,
 			   bool *css_pipe_done);
-void atomisp_set_stop_timeout(unsigned int timeout);
 
 bool atomisp_css_valid_sof(struct atomisp_device *isp);
 
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c +0 -5
index 6697d72..cfa0ad4 100644
@@ -4699,11 +4699,6 @@ int atomisp_css_isr_thread(struct atomisp_device *isp,
 	return 0;
 }
 
-void atomisp_set_stop_timeout(unsigned int timeout)
-{
-	return;
-}
-
 bool atomisp_css_valid_sof(struct atomisp_device *isp)
 {
 	unsigned int i, j;
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 15 lines · simran singhal

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;

Quoted 7 lines

}

---
v1:
-Change Subject to include name of function -change commit message to include the coccinelle script

You should also cc: the developers doing all of the current work on this driver, Alan Cox, to get their comment if this really is something that can be removed or not.

thanks,

greg k-h

#2 lore raw
Quoted 24 lines · Greg KH
Quoted 15 lines · simran singhal

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;

Quoted 7 lines

}

---
v1:
-Change Subject to include name of function -change commit message to include the coccinelle script

Quoted 6 lines

You should also cc: the developers doing all of the current work on this driver, Alan Cox, to get their comment if this really is something that can be removed or not.

thanks,

Greg I have cc'd all the developers which script get_maintainer.pl showed:

$ git show HEAD | perl scripts/get_maintainer.pl --separator ,
--nokeywords --nogit --nogit-fallback --norolestats

Mauro Carvalho Chehab <[email protected]>,Greg Kroah-Hartman <[email protected]>, [email protected],[email protected],[email protected]

Quoted 1 line

greg k-h

#3 lore raw
Quoted 29 lines · SIMRAN SINGHAL
Quoted 28 lines · Greg KH
Quoted 15 lines · simran singhal

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;

Quoted 7 lines

}

---
v1:
-Change Subject to include name of function -change commit message to include the coccinelle script

You should also cc: the developers doing all of the current work on this driver, Alan Cox, to get their comment if this really is something that can be removed or not.

Quoted 6 lines
Quoted 2 lines

thanks,

Greg I have cc'd all the developers which script get_maintainer.pl showed:

$ git show HEAD | perl scripts/get_maintainer.pl --separator ,
--nokeywords --nogit --nogit-fallback --norolestats

Sometimes people do a lot of work on something without being the maintainer. You can see who has done this using git log. Dropping some of the "no" arguments might give you the same information, but in practice the results tend to be an overapproximation...

julia

Quoted 14 lines

Mauro Carvalho Chehab <[email protected]>,Greg Kroah-Hartman <[email protected]>, [email protected],[email protected],[email protected]

Quoted 1 line

greg k-h

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/CALrZqyOdKmSF10Ba60_00OzzRMnKAt7XwjksmuQfGEKvBY-avg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.