Skip to content

Commit

Permalink
staging: comedi: cb_pcidda: fix error test in cb_pcidda_attach_pci()
Browse files Browse the repository at this point in the history
As pointed out by Fengguang Wu, the error test after finding the
boardinfo should be testing for (!thisboard).

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 25, 2012
1 parent 23249ea commit ff331f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/cb_pcidda.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ static int cb_pcidda_attach_pci(struct comedi_device *dev,
int ret;

thisboard = cb_pcidda_find_boardinfo(dev, pcidev);
if (!pcidev)
if (!thisboard)
return -ENODEV;
dev->board_ptr = thisboard;
dev->board_name = thisboard->name;
Expand Down

0 comments on commit ff331f7

Please sign in to comment.