diff options
author | Su Hui <suhui@nfschina.com> | 2023-10-20 12:17:23 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-12-13 13:04:46 +0300 |
commit | 09b4195021be69af1e1936cca995712a6d0f2562 (patch) | |
tree | 8af981d5a76e669fb7eb798da0f7229fbae45e1c | |
parent | 5b2f885e2f6f482d05c23f04c8240f7b4fc5bdb5 (diff) | |
download | linux-09b4195021be69af1e1936cca995712a6d0f2562.tar.xz |
media: ddbridge: fix an error code problem in ddb_probe
Error code is assigned to 'stat', return 'stat' rather than '-1'.
Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-main.c b/drivers/media/pci/ddbridge/ddbridge-main.c index 91733ab9f58c..363badab7cf0 100644 --- a/drivers/media/pci/ddbridge/ddbridge-main.c +++ b/drivers/media/pci/ddbridge/ddbridge-main.c @@ -238,7 +238,7 @@ fail: ddb_unmap(dev); pci_set_drvdata(pdev, NULL); pci_disable_device(pdev); - return -1; + return stat; } /****************************************************************************/ |