diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2008-10-17 18:09:15 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-17 18:09:15 +0200 |
commit | ea2ac5a3b7d33ff9f41ddcee2a92c95b5a32f4e2 (patch) | |
tree | 542f073c0553e02fe52096f645cc4a43e48ab627 /block/blk-sysfs.c | |
parent | e5403bff8a4018240f012fd4c7afa24c2e75b469 (diff) |
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>
Diffstat (limited to 'block/blk-sysfs.c')
0 files changed, 0 insertions, 0 deletions