summaryrefslogtreecommitdiff
path: root/drivers/ata/sata_mv.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2009-12-17 01:23:16 -0500
committerJeff Garzik <jgarzik@redhat.com>2009-12-17 01:23:16 -0500
commit0535f2bc170bc0779ac471faff39f633ca19ab59 (patch)
tree57bba34cb3d87fb48e38d56706ad2ffaf32a8454 /drivers/ata/sata_mv.c
parent256ace9bbd4cdb6d48d5f55d55d42fa20527fad1 (diff)
downloadlinux-next-0535f2bc170bc0779ac471faff39f633ca19ab59.tar.gz
sata_mv: remove pointless NULL test
Remove !ap test, where ap is guaranteed not-NULL. Found by way of automated bug report from Alexander Strakh via "Linux Device Drivers Verification Project (Svace Detector)" Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_mv.c')
-rwxr-xr-xdrivers/ata/sata_mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 73768195ccc2..df8ee325d3ca 100755
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -2781,7 +2781,7 @@ static void mv_port_intr(struct ata_port *ap, u32 port_cause)
struct mv_port_priv *pp;
int edma_was_enabled;
- if (!ap || (ap->flags & ATA_FLAG_DISABLED)) {
+ if (ap->flags & ATA_FLAG_DISABLED) {
mv_unexpected_intr(ap, 0);
return;
}