staging: Remove OOM message after input_allocate_device
authorJoe Perches <joe@perches.com>
Wed, 23 Oct 2013 19:14:53 +0000 (12:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 16:05:21 +0000 (09:05 -0700)
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>
drivers/staging/cptm1217/clearpad_tm1217.c
drivers/staging/iio/adc/mxs-lradc.c
drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c

index 42a5f5c8d3d181e224be7d2b6b2d14ca24be9592..ca4c2c67dd880d4253909850a7811badcc24b7b9 100644 (file)
@@ -457,8 +457,6 @@ static int cp_tm1217_probe(struct i2c_client *client,
        for (i = 0; i < TOUCH_SUPPORTED; i++) {
                input_dev = input_allocate_device();
                if (input_dev == NULL) {
-                       dev_err(ts->dev,
-                               "cp_tm1217:Input Device Struct alloc failed\n");
                        retval = -ENOMEM;
                        goto fail;
                }
index 1bb03e196aa75e550d076423b74e845f79905bd6..aeae76b77be5732eebd2756a8c07353f99d4be0c 100644 (file)
@@ -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;
index 386362c9964ff1e8856adcaa14fa000aa82686f5..28b393071026318eea30591a81e7d66ce250ded7 100644 (file)
@@ -911,8 +911,6 @@ static int synaptics_rmi4_probe
 
        rmi4_data->input_dev = input_allocate_device();
        if (rmi4_data->input_dev == NULL) {
-               dev_err(&client->dev, "%s:input device alloc failed\n",
-                                               __func__);
                retval = -ENOMEM;
                goto err_input;
        }