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>
This commit is contained in:
parent
4d97845225
commit
f99a92c3ee
@ -457,8 +457,6 @@ static int cp_tm1217_probe(struct i2c_client *client,
|
|||||||
for (i = 0; i < TOUCH_SUPPORTED; i++) {
|
for (i = 0; i < TOUCH_SUPPORTED; i++) {
|
||||||
input_dev = input_allocate_device();
|
input_dev = input_allocate_device();
|
||||||
if (input_dev == NULL) {
|
if (input_dev == NULL) {
|
||||||
dev_err(ts->dev,
|
|
||||||
"cp_tm1217:Input Device Struct alloc failed\n");
|
|
||||||
retval = -ENOMEM;
|
retval = -ENOMEM;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@ -868,10 +868,8 @@ static int mxs_lradc_ts_register(struct mxs_lradc *lradc)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
input = input_allocate_device();
|
input = input_allocate_device();
|
||||||
if (!input) {
|
if (!input)
|
||||||
dev_err(dev, "Failed to allocate TS device!\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
input->name = DRIVER_NAME;
|
input->name = DRIVER_NAME;
|
||||||
input->id.bustype = BUS_HOST;
|
input->id.bustype = BUS_HOST;
|
||||||
|
@ -911,8 +911,6 @@ static int synaptics_rmi4_probe
|
|||||||
|
|
||||||
rmi4_data->input_dev = input_allocate_device();
|
rmi4_data->input_dev = input_allocate_device();
|
||||||
if (rmi4_data->input_dev == NULL) {
|
if (rmi4_data->input_dev == NULL) {
|
||||||
dev_err(&client->dev, "%s:input device alloc failed\n",
|
|
||||||
__func__);
|
|
||||||
retval = -ENOMEM;
|
retval = -ENOMEM;
|
||||||
goto err_input;
|
goto err_input;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user