Skip to content

Commit

Permalink
g_NCR5380: remove misleading pnp error message
Browse files Browse the repository at this point in the history
Remove misleading error message that appears after pnp card has been
detected correctly.

Signed-off-by: Ondrej Zary <[email protected]>
Cc: James Bottomley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ondrej Zary authored and torvalds committed Aug 11, 2010
1 parent eb6edad commit c94babb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/scsi/g_NCR5380.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,8 @@ int __init generic_NCR5380_detect(struct scsi_host_template * tpnt)
while ((dev = pnp_find_dev(NULL, ISAPNP_VENDOR('D', 'T', 'C'), ISAPNP_FUNCTION(0x436e), dev))) {
if (count >= NO_OVERRIDES)
break;
if (pnp_device_attach(dev) < 0) {
printk(KERN_ERR "dtc436e probe: attach failed\n");
if (pnp_device_attach(dev) < 0)
continue;
}
if (pnp_activate_dev(dev) < 0) {
printk(KERN_ERR "dtc436e probe: activate failed\n");
pnp_device_detach(dev);
Expand Down

0 comments on commit c94babb

Please sign in to comment.