Skip to content

Commit

Permalink
pcmcia: dtl1_cs: fix pcmcia_loop_config logic
Browse files Browse the repository at this point in the history
pcmcia_loop_config returns 0 on success.

[wsa: added '< 0' for better readability]

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Philipp Zabel authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent cc67744 commit cb6dbd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/dtl1_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ static int dtl1_config(struct pcmcia_device *link)

/* Look for a generic full-sized window */
link->io.NumPorts1 = 8;
if (!pcmcia_loop_config(link, dtl1_confcheck, NULL))
if (pcmcia_loop_config(link, dtl1_confcheck, NULL) < 0)
goto failed;

i = pcmcia_request_irq(link, &link->irq);
Expand Down

0 comments on commit cb6dbd7

Please sign in to comment.