diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-11-21 13:33:00 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-11-21 16:00:05 +0000 |
commit | 231bfe53c57e89857753c940192acba933cba56c (patch) | |
tree | d60e063009d85de309bbe4956225fb53bc8cddd2 /drivers/iio/industrialio-core.c | |
parent | 8386c27587594899e4b638010fa0187fe068b295 (diff) |
iio: fix some warning messages
WARN_ON() only takes a condition argument. I have changed these to
WARN() instead.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r-- | drivers/iio/industrialio-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index 208358f9e7e3..159ede61f793 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -655,7 +655,7 @@ int __iio_device_attr_init(struct device_attribute *dev_attr, break; case IIO_SEPARATE: if (!chan->indexed) { - WARN_ON("Differential channels must be indexed\n"); + WARN(1, "Differential channels must be indexed\n"); ret = -EINVAL; goto error_free_full_postfix; } |