staging:iio: in case of buggy drivers avoid using undefined mask.
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 12 Aug 2011 15:55:36 +0000 (16:55 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:28:44 +0000 (13:28 -0700)
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c

index 8bee56250a96036c7d8a20f933a470003de19443..e8ad648de3dadd258ad4fee6a39f7e365043a7a1 100644 (file)
@@ -958,6 +958,7 @@ static int iio_device_add_event_sysfs(struct iio_dev *dev_info,
                        break;
                default:
                        printk(KERN_INFO "currently unhandled type of event\n");
+                       continue;
                }
                ret = __iio_add_chan_devattr(postfix,
                                             NULL,