Commit 85d4331c authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] dumb cpqarray init microoptimisation.

parent 247ed088
......@@ -1485,10 +1485,11 @@ static int revalidate_allvol(kdev_t dev)
int ctlr, i;
unsigned long flags;
ctlr = major(dev) - MAJOR_NR;
if (minor(dev) != 0)
return -ENXIO;
ctlr = major(dev) - MAJOR_NR;
spin_lock_irqsave(IDA_LOCK(ctlr), flags);
if (hba[ctlr]->usage_count > 1) {
spin_unlock_irqrestore(IDA_LOCK(ctlr), flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment