Skip to content

Commit

Permalink
[media] Staging: dt3155v4l: probe() always fails
Browse files Browse the repository at this point in the history
There were some curly braces missing so the probe() function always
failed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Jan 6, 2012
1 parent 527f18b commit aecf33d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/media/dt3155v4l/dt3155v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,10 @@ dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (err)
goto err_req_region;
pd->regs = pci_iomap(pdev, 0, pci_resource_len(pd->pdev, 0));
if (!pd->regs)
if (!pd->regs) {
err = -ENOMEM;
goto err_pci_iomap;
}
err = dt3155_init_board(pdev);
if (err)
goto err_init_board;
Expand Down

0 comments on commit aecf33d

Please sign in to comment.