diff options
author | Andy Walls <awalls@radix.net> | 2008-10-18 10:20:25 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 14:20:47 -0200 |
commit | 9b4a7c8a83899ef7742f63c0e9a8a28cbff2c29a (patch) | |
tree | 46c9bb40a4734d5a0a4769c8e4b6599ec40c84d6 /drivers/media/video/cx18/cx18-driver.c | |
parent | 06869713de3e6380b2f24d9eac30426b4e471375 (diff) | |
download | lwn-9b4a7c8a83899ef7742f63c0e9a8a28cbff2c29a.tar.gz lwn-9b4a7c8a83899ef7742f63c0e9a8a28cbff2c29a.zip |
V4L/DVB (9299): cx18: Don't mask many real init error codes by mapping them to ENOMEM
Changes to let error return codes bubble up to the user visible
error message on card initialization. A number of them were being remapped to
ENOMEM when no memory or array resource shortage existed. That hampered
diagnosis of user trouble reports.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index ef60f561d956..7a1a7830a6b3 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c @@ -699,7 +699,8 @@ static int __devinit cx18_probe(struct pci_dev *dev, /* active i2c */ CX18_DEBUG_INFO("activating i2c...\n"); - if (init_cx18_i2c(cx)) { + retval = init_cx18_i2c(cx); + if (retval) { CX18_ERR("Could not initialize i2c\n"); goto free_map; } |