]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
hpt366: cleanup maskproc() method
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Fri, 17 Oct 2008 16:09:15 +0000 (18:09 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 17 Oct 2008 16:09:15 +0000 (18:09 +0200)
commitea2ac5a3b7d33ff9f41ddcee2a92c95b5a32f4e2
tree542f073c0553e02fe52096f645cc4a43e48ab627
parente5403bff8a4018240f012fd4c7afa24c2e75b469
hpt366: cleanup maskproc() method

Since the maskproc() method calls either mirror the interrupt en/disable via
the nIEN bit of the device control register done by the IDE core before issuing
a command or unmask the interrupt after a command executed in polled mode (when
interrupt is already not expected), it is pointless to manipulate the nIEN bit
in this method; therefore, just do nothing for the drives not on the quirk list.
Move the code to the left by using an early return and the 'else if' construct,
while at it....

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
[bart: fix checkpatch.pl warning]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/hpt366.c