V4L/DVB (4379): Videodev: Check return value of class_device_register() correctly

Errors are return values < 0, not != 0.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by Trent Piepho and committed by Mauro Carvalho Chehab 8c313111 08d41808

+1 -1
+1 -1
drivers/media/video/videodev.c
··· 1575 vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor); 1576 sprintf(vfd->class_dev.class_id, "%s%d", name_base, i - base); 1577 ret = class_device_register(&vfd->class_dev); 1578 - if (ret) { 1579 printk(KERN_ERR "%s: class_device_register failed\n", 1580 __FUNCTION__); 1581 goto fail_minor;
··· 1575 vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor); 1576 sprintf(vfd->class_dev.class_id, "%s%d", name_base, i - base); 1577 ret = class_device_register(&vfd->class_dev); 1578 + if (ret < 0) { 1579 printk(KERN_ERR "%s: class_device_register failed\n", 1580 __FUNCTION__); 1581 goto fail_minor;