Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
Greg Kroah-Hartman
f99a92c3 4d978452

+1 -7
-2
drivers/staging/cptm1217/clearpad_tm1217.c
··· 457 457 for (i = 0; i < TOUCH_SUPPORTED; i++) { 458 458 input_dev = input_allocate_device(); 459 459 if (input_dev == NULL) { 460 - dev_err(ts->dev, 461 - "cp_tm1217:Input Device Struct alloc failed\n"); 462 460 retval = -ENOMEM; 463 461 goto fail; 464 462 }
+1 -3
drivers/staging/iio/adc/mxs-lradc.c
··· 868 868 return 0; 869 869 870 870 input = input_allocate_device(); 871 - if (!input) { 872 - dev_err(dev, "Failed to allocate TS device!\n"); 871 + if (!input) 873 872 return -ENOMEM; 874 - } 875 873 876 874 input->name = DRIVER_NAME; 877 875 input->id.bustype = BUS_HOST;
-2
drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c
··· 911 911 912 912 rmi4_data->input_dev = input_allocate_device(); 913 913 if (rmi4_data->input_dev == NULL) { 914 - dev_err(&client->dev, "%s:input device alloc failed\n", 915 - __func__); 916 914 retval = -ENOMEM; 917 915 goto err_input; 918 916 }