Commit 0535f2bc authored by Jeff Garzik's avatar Jeff Garzik Committed by Jeff Garzik

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: default avatarJeff Garzik <jgarzik@redhat.com>
parent 256ace9b
...@@ -2781,7 +2781,7 @@ static void mv_port_intr(struct ata_port *ap, u32 port_cause) ...@@ -2781,7 +2781,7 @@ static void mv_port_intr(struct ata_port *ap, u32 port_cause)
struct mv_port_priv *pp; struct mv_port_priv *pp;
int edma_was_enabled; int edma_was_enabled;
if (!ap || (ap->flags & ATA_FLAG_DISABLED)) { if (ap->flags & ATA_FLAG_DISABLED) {
mv_unexpected_intr(ap, 0); mv_unexpected_intr(ap, 0);
return; return;
} }
......
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