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

Input: synaptics-rmi4 - remove check of Non-NULL array

Originally the irq_mask member of rmi_function was a pointer. Then it was
switched to being a zero length array. However, the checks for a NULL
pointer where not removed.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Andrew Duggan and committed by
Dmitry Torokhov
a1376d3d 2d5f5611

+2 -3
+2 -3
drivers/input/rmi4/rmi_driver.c
··· 126 126 return; 127 127 128 128 fh = to_rmi_function_handler(fn->dev.driver); 129 - if (fn->irq_mask && fh->attention) { 129 + if (fh->attention) { 130 130 bitmap_and(data->fn_irq_bits, data->irq_status, fn->irq_mask, 131 131 data->irq_count); 132 132 if (!bitmap_empty(data->fn_irq_bits, data->irq_count)) ··· 172 172 * use irq_chip. 173 173 */ 174 174 list_for_each_entry(entry, &data->function_list, node) 175 - if (entry->irq_mask) 176 - process_one_interrupt(data, entry); 175 + process_one_interrupt(data, entry); 177 176 178 177 if (data->input) 179 178 input_sync(data->input);