mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
PNP: remove redundant pnp_can_configure() check
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]>
This commit is contained in:
1 parent
6e906f0e1c
commit
b08395e503
1 file changed
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user