projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e906f0
)
PNP: remove redundant pnp_can_configure() check
author
Bjorn Helgaas
<
[email protected]
>
Fri, 27 Jun 2008 22:57:10 +0000
(16:57 -0600)
committer
Andi Kleen
<
[email protected]
>
Wed, 16 Jul 2008 21:27:07 +0000
(23:27 +0200)
pnp_assign_resources() is static and the only caller checks
pnp_can_configure() before calling it, so no need to do it
again.
Signed-off-by: Bjorn Helgaas <
[email protected]
>
Signed-off-by: Andi Kleen <
[email protected]
>
Acked-by: Rene Herman <
[email protected]
>
Signed-off-by: Len Brown <
[email protected]
>
drivers/pnp/manager.c
patch
|
blob
|
history
diff --git
a/drivers/pnp/manager.c
b/drivers/pnp/manager.c
index 1adc83fdabb69497780f09d2dfeaa415a5d76e90..7ea9e1e28003f110bc6e86145be9e7a6de9bf2bf 100644
(file)
--- a/
drivers/pnp/manager.c
+++ b/
drivers/pnp/manager.c
@@
-231,9
+231,6
@@
static int pnp_assign_resources(struct pnp_dev *dev, int depnum)
struct pnp_dma *dma;
int nport = 0, nmem = 0, nirq = 0, ndma = 0;
- if (!pnp_can_configure(dev))
- return -ENODEV;
-
dbg_pnp_show_resources(dev, "before pnp_assign_resources");
mutex_lock(&pnp_res_mutex);
pnp_clean_resource_table(dev);