Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media/radio: Make radio_isa_common_remove() return void

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>

authored by

Uwe Kleine-König and committed by
Takashi Iwai
7797b4e0 d2006bb7

+5 -4
+5 -4
drivers/media/radio/radio-isa.c
··· 273 273 return res; 274 274 } 275 275 276 - static int radio_isa_common_remove(struct radio_isa_card *isa, 277 - unsigned region_size) 276 + static void radio_isa_common_remove(struct radio_isa_card *isa, 277 + unsigned region_size) 278 278 { 279 279 const struct radio_isa_ops *ops = isa->drv->ops; 280 280 ··· 285 285 release_region(isa->io, region_size); 286 286 v4l2_info(&isa->v4l2_dev, "Removed radio card %s\n", isa->drv->card); 287 287 kfree(isa); 288 - return 0; 289 288 } 290 289 291 290 int radio_isa_probe(struct device *pdev, unsigned int dev) ··· 341 342 { 342 343 struct radio_isa_card *isa = dev_get_drvdata(pdev); 343 344 344 - return radio_isa_common_remove(isa, isa->drv->region_size); 345 + radio_isa_common_remove(isa, isa->drv->region_size); 346 + 347 + return 0; 345 348 } 346 349 EXPORT_SYMBOL_GPL(radio_isa_remove); 347 350