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

[media] media: rc: nuvoton-cir: make nvt_hw_detect void

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>

authored by

Heiner Kallweit and committed by
Mauro Carvalho Chehab
6a5a3360 b5cf725c

+2 -6
+2 -6
drivers/media/rc/nuvoton-cir.c
··· 250 250 251 251 252 252 /* detect hardware features */ 253 - static int nvt_hw_detect(struct nvt_dev *nvt) 253 + static void nvt_hw_detect(struct nvt_dev *nvt) 254 254 { 255 255 const char *chip_name; 256 256 int chip_id; ··· 281 281 chip_name, nvt->chip_major, nvt->chip_minor); 282 282 283 283 nvt_efm_disable(nvt); 284 - 285 - return 0; 286 284 } 287 285 288 286 static void nvt_cir_ldev_init(struct nvt_dev *nvt) ··· 1022 1024 1023 1025 init_waitqueue_head(&nvt->tx.queue); 1024 1026 1025 - ret = nvt_hw_detect(nvt); 1026 - if (ret) 1027 - goto exit_free_dev_rdev; 1027 + nvt_hw_detect(nvt); 1028 1028 1029 1029 /* Initialize CIR & CIR Wake Logical Devices */ 1030 1030 nvt_efm_enable(nvt);