Commit a1376d3d authored by Andrew Duggan's avatar Andrew Duggan Committed by Dmitry Torokhov

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: default avatarAndrew Duggan <aduggan@synaptics.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 2d5f5611
...@@ -126,7 +126,7 @@ static void process_one_interrupt(struct rmi_driver_data *data, ...@@ -126,7 +126,7 @@ static void process_one_interrupt(struct rmi_driver_data *data,
return; return;
fh = to_rmi_function_handler(fn->dev.driver); fh = to_rmi_function_handler(fn->dev.driver);
if (fn->irq_mask && fh->attention) { if (fh->attention) {
bitmap_and(data->fn_irq_bits, data->irq_status, fn->irq_mask, bitmap_and(data->fn_irq_bits, data->irq_status, fn->irq_mask,
data->irq_count); data->irq_count);
if (!bitmap_empty(data->fn_irq_bits, data->irq_count)) if (!bitmap_empty(data->fn_irq_bits, data->irq_count))
...@@ -172,8 +172,7 @@ int rmi_process_interrupt_requests(struct rmi_device *rmi_dev) ...@@ -172,8 +172,7 @@ int rmi_process_interrupt_requests(struct rmi_device *rmi_dev)
* use irq_chip. * use irq_chip.
*/ */
list_for_each_entry(entry, &data->function_list, node) list_for_each_entry(entry, &data->function_list, node)
if (entry->irq_mask) process_one_interrupt(data, entry);
process_one_interrupt(data, entry);
if (data->input) if (data->input)
input_sync(data->input); input_sync(data->input);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment