diff options
author | Joe Perches <joe@perches.com> | 2013-10-23 23:14:53 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 20:05:21 +0400 |
commit | f99a92c3ee7298426247a12d5649f8bde70fbcd4 (patch) | |
tree | 238b406d17c682194487f0dc2d72e32245077f7c /drivers/staging/iio/adc | |
parent | 4d9784522588302dccb7088c0d7dc541719e6d07 (diff) | |
download | linux-f99a92c3ee7298426247a12d5649f8bde70fbcd4.tar.xz |
staging: Remove OOM message after input_allocate_device
Emitting an OOM message isn't necessary after input_allocate_device
as there's a generic OOM and a dump_stack already done.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/adc')
-rw-r--r-- | drivers/staging/iio/adc/mxs-lradc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/drivers/staging/iio/adc/mxs-lradc.c index 1bb03e196aa7..aeae76b77be5 100644 --- a/drivers/staging/iio/adc/mxs-lradc.c +++ b/drivers/staging/iio/adc/mxs-lradc.c @@ -868,10 +868,8 @@ static int mxs_lradc_ts_register(struct mxs_lradc *lradc) return 0; input = input_allocate_device(); - if (!input) { - dev_err(dev, "Failed to allocate TS device!\n"); + if (!input) return -ENOMEM; - } input->name = DRIVER_NAME; input->id.bustype = BUS_HOST; |