summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/btcx-risc.h
diff options
context:
space:
mode:
authorroyale@royale <royale@royale>2007-05-20 14:12:10 +0200
committerroyale@royale <royale@royale>2007-05-20 14:12:10 +0200
commit2454fcc21cbbd3c59ae9205c2d99b7849a5c5bed (patch)
tree7b0409436cd64b2b8ab683a33428cef11ad1bc89 /linux/drivers/media/video/btcx-risc.h
parent9e64c6766c66005d13e7522e9e14c43b6388db30 (diff)
downloadmediapointer-dvb-s2-2454fcc21cbbd3c59ae9205c2d99b7849a5c5bed.tar.gz
mediapointer-dvb-s2-2454fcc21cbbd3c59ae9205c2d99b7849a5c5bed.tar.bz2
zr364xx: fix return values
From: Akinobu Mita <akinobu.mita@gmail.com> This patch fixes several return value related problems in zr364xx. - return -ENOMEM instead of -ENODEV on out of memory - zr364xx checks video_register_device() error only when its return value is -1. But video_register_device() doesn't always return -1 on error. - If usb_register() returns error, module_init() wrongly returns 1: retval = usb_register(&zr364xx_driver) < 0; ... return retval; And it allows the module to be loaded. Because sys_init_module() doesn't see positive return value as error. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Diffstat (limited to 'linux/drivers/media/video/btcx-risc.h')
0 files changed, 0 insertions, 0 deletions