media/radio: Make radio_isa_common_remove() return void
authorUwe Kleine-König <uwe@kleine-koenig.org>
Fri, 22 Jan 2021 09:24:48 +0000 (10:24 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Jan 2021 06:41:11 +0000 (07:41 +0100)
Instead of an unconditional return 0, return no value. One of the two
callers ignored the return value already before.

This simplifies the next patch.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Link: https://lore.kernel.org/r/20210122092449.426097-3-uwe@kleine-koenig.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/media/radio/radio-isa.c

index ad2ac16ff12dd138f1213baca636dd25eb7e58be..527f4c3b0ca4f0a8e4e22f721ef373d68323048c 100644 (file)
@@ -273,8 +273,8 @@ err_dev_reg:
        return res;
 }
 
-static int radio_isa_common_remove(struct radio_isa_card *isa,
-                                  unsigned region_size)
+static void radio_isa_common_remove(struct radio_isa_card *isa,
+                                   unsigned region_size)
 {
        const struct radio_isa_ops *ops = isa->drv->ops;
 
@@ -285,7 +285,6 @@ static int radio_isa_common_remove(struct radio_isa_card *isa,
        release_region(isa->io, region_size);
        v4l2_info(&isa->v4l2_dev, "Removed radio card %s\n", isa->drv->card);
        kfree(isa);
-       return 0;
 }
 
 int radio_isa_probe(struct device *pdev, unsigned int dev)
@@ -342,7 +341,9 @@ int radio_isa_remove(struct device *pdev, unsigned int dev)
 {
        struct radio_isa_card *isa = dev_get_drvdata(pdev);
 
-       return radio_isa_common_remove(isa, isa->drv->region_size);
+       radio_isa_common_remove(isa, isa->drv->region_size);
+
+       return 0;
 }
 EXPORT_SYMBOL_GPL(radio_isa_remove);