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 8bee562..e8ad648 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,