[media] media: rc: nuvoton-cir: make nvt_hw_detect void
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 29 Oct 2015 21:22:00 +0000 (19:22 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 11:35:54 +0000 (09:35 -0200)
nvt_hw_detect always returns 0, therefore make it return void.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/nuvoton-cir.c

index c5c238ba5618275e2a27d02c2e9e47eb1b2ad9a4..df4b9cbba6007deb40d03001a2d087df08729453 100644 (file)
@@ -250,7 +250,7 @@ static inline const char *nvt_find_chip(struct nvt_dev *nvt, int id)
 
 
 /* detect hardware features */
-static int nvt_hw_detect(struct nvt_dev *nvt)
+static void nvt_hw_detect(struct nvt_dev *nvt)
 {
        const char *chip_name;
        int chip_id;
@@ -281,8 +281,6 @@ static int nvt_hw_detect(struct nvt_dev *nvt)
                        chip_name, nvt->chip_major, nvt->chip_minor);
 
        nvt_efm_disable(nvt);
-
-       return 0;
 }
 
 static void nvt_cir_ldev_init(struct nvt_dev *nvt)
@@ -1024,9 +1022,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)
 
        init_waitqueue_head(&nvt->tx.queue);
 
-       ret = nvt_hw_detect(nvt);
-       if (ret)
-               goto exit_free_dev_rdev;
+       nvt_hw_detect(nvt);
 
        /* Initialize CIR & CIR Wake Logical Devices */
        nvt_efm_enable(nvt);
This page took 0.029182 seconds and 5 git commands to generate.