Skip to content
Snippets Groups Projects
Commit c7bec5ab authored by Jeff Garzik's avatar Jeff Garzik
Browse files

Various drivers' irq handlers: kill dead code, needless casts


- Eliminate casts to/from void*

- Eliminate checks for conditions that never occur.  These typically
  fall into two classes:

	1) Checking for 'dev_id == NULL', then it is never called with
	NULL as an argument.

	2) Checking for invalid irq number, when the only caller (the
	system) guarantees the irq handler is called with the proper
	'irq' number argument.

Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent c31f28e7
No related branches found
No related tags found
No related merge requests found
Showing
with 45 additions and 72 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment